Class Regulator
java.lang.Object
org.kingdoms.constants.metadata.KingdomsObject<SimpleLocation>
org.kingdoms.constants.land.abstraction.KingdomItem<StructureStyle>
org.kingdoms.constants.land.structures.Structure
org.kingdoms.constants.land.structures.objects.Regulator
- All Implemented Interfaces:
org.kingdoms.abstraction.LandOperator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Field Summary
FieldsFields inherited from class org.kingdoms.constants.land.abstraction.KingdomItem
level, location, styleFields inherited from class org.kingdoms.constants.metadata.KingdomsObject
metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanInteract(org.bukkit.OfflinePlayer player, org.bukkit.block.Block block) static Regulator.InteractabledetectInteractableType(org.bukkit.Material material) getRules()hasAttribute(org.bukkit.OfflinePlayer player, Regulator.Attribute attribute) inthashCode()booleanhasRule(Regulator.Rule rule) voidserialize(SerializationContext<org.kingdoms.data.database.dataprovider.SectionableDataSetter> context) voidsetAttributes(Map<UUID, Set<Regulator.Attribute>> attributes) voidsetInteractions(Map<UUID, Set<Regulator.Interactable>> interactions) voidsetRules(Set<Regulator.Rule> rules) Methods inherited from class org.kingdoms.constants.land.structures.Structure
getDisplayName, getEdits, getNameOrDefault, getTags, place, remove, removeData, setDataFromNBT, setName, toStringMethods inherited from class org.kingdoms.constants.land.abstraction.KingdomItem
displayParticle, displayParticle, dropItem, equals, eval, eval, getBlock, getCompressedData, getContext, getDataKey, getEdits, getHolograms, getItem, getLand, getLevel, getLocation, getMaxLevel, getStyle, getUpgradeCost, ofSection, ofSection, ofSection, playSound, playSound, remove, removeHolograms, removeHolograms, round, setHolograms, setLevel, spawnHolograms, spawnHolograms, updateHolograms, upgradeMethods inherited from class org.kingdoms.constants.metadata.KingdomsObject
compressBoolean, compressCollecton, compressCollecton, compressColor, compressInventory, compressLocation, compressLocation, compressMap, compressMetadata, compressString, compressUUID, getMetadata, getSaveMeta, setMetadata, setSaveMeta, shouldSave
-
Field Details
-
NS
public static final org.kingdoms.constants.namespace.Namespace NS
-
-
Constructor Details
-
Regulator
-
-
Method Details
-
detectInteractableType
-
getRules
-
setRules
-
getInteractions
-
setInteractions
-
hasRule
-
hasAttribute
-
canInteract
-
getAttributes
-
setAttributes
-
hashCode
public int hashCode()- Overrides:
hashCodein classKingdomItem<StructureStyle>
-
serialize
public void serialize(SerializationContext<org.kingdoms.data.database.dataprovider.SectionableDataSetter> context)
-