Package dev.foxikle.customnpcs.data
Class Settings
java.lang.Object
dev.foxikle.customnpcs.data.Settings
A class holding the data for an NPC's settings
-
Constructor Summary
ConstructorsConstructorDescriptionSettings()
Creates a settings with defaults.Settings
(boolean interactable, boolean tunnelvision, boolean resilient, double direction, String value, String signature, String skinName, String name) Deprecated.Settings
(boolean interactable, boolean tunnelvision, boolean resilient, double direction, String value, String signature, String skinName, String name, String customInteractableHologram, boolean hideClickableHologram) Creates a settings object with the specified settings -
Method Summary
-
Constructor Details
-
Settings
@Deprecated @ScheduledForRemoval(inVersion="1.7") public Settings(boolean interactable, boolean tunnelvision, boolean resilient, double direction, String value, String signature, String skinName, String name) Deprecated.Creates a settings object with the specified settings- Parameters:
interactable
- If the npc has actions to executetunnelvision
- If the npc will look at playersresilient
- If the npc will persist on restartsdirection
- The direction to lookvalue
- The value of the npc's skinsignature
- The signature of the npc's skinskinName
- The name of the skin as it is referenced in the Menuname
- The name of NPC formatted in SERIALIZED minimessage format
-
Settings
public Settings(boolean interactable, boolean tunnelvision, boolean resilient, double direction, String value, String signature, String skinName, String name, String customInteractableHologram, boolean hideClickableHologram) Creates a settings object with the specified settings- Parameters:
interactable
- If the npc has actions to executetunnelvision
- If the npc will look at playersresilient
- If the npc will persist on restartsdirection
- The direction to lookvalue
- The value of the npc's skinsignature
- The signature of the npc's skinskinName
- The name of the skin as it is referenced in the Menuname
- The name of NPC formatted in SERIALIZED minimessage formatcustomInteractableHologram
- The custom hologramhideClickableHologram
- If the NPC's Clickable hologram should be hidden
-
Settings
public Settings()Creates a settings with defaults.
-
-
Method Details
-
getName
gets the NPC's name in serialized minimessage format.- Returns:
- the NPC's serialized name
-
setName
public void setName(net.kyori.adventure.text.Component name) Sets the name of the npc- Parameters:
name
- as a component
-
setSkinData
Sets the skin data in on fell swoop- Parameters:
signature
- the skin signaturevalue
- the skin valueskinName
- the cosmetic name
-
clone
-