Package net.citizensnpcs.api.npc
Enum NPC.Metadata
- All Implemented Interfaces:
- Serializable,- Comparable<NPC.Metadata>,- java.lang.constant.Constable
- Enclosing interface:
- NPC
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe activation range.The Minecraft ambient sound played.Whether the NPC is collidable with Players or not.Whether the NPC can damage other Entities.The Minecraft sound played when the NPC dies.Whether the NPC is 'protected' i.e. invulnerable to damage.Whether to disable the default stuck action (teleport to destination is default).Whether the NPC drops its inventory after death.Whether the NPC is pushable by fluids.Whether the NPC is 'flyable' i.e. will fly when pathfinding.Forces a singular packet update.Whether the NPC is currently glowing.The Minecraft sound to play when hurt.The Item amount.The Item data.The Item ID.Whether to keep chunk loaded.Simple knockback toggle.Whether the NPC is leashable.The Minecart item offset as defined by Minecraft.Whether the NPC's nameplate should be visible.Internal use onlyThe packet update delay in ticks.Whether to open doors while pathfinding.Whether to pick up items.Whether to remove players from the player list.Whether to remove the NPC from the tablist.Whether to reset entity pitch to0every tick (default Minecraft behaviour).Whether to reset NPC yaw on spawn.The Integer delay to respawn in ticks after death.The fake NPC scoreboard team name because Minecraft requires a team name.Whether to save / persist across server restarts.Whether to suppress sounds.The initial no damage ticks on spawn, defaults to 20.Whether to allow swimming.The tracking distance for packets.Whether to use Minecraft AI.Whether player is actively using held item.Whether player is actively using offhand item.Whether to block Minecraft villager trades.Speed modifier in water, percentage.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic NPC.Metadatastatic NPC.MetadatagetKey()com.google.common.reflect.TypeToken<?> getType()static NPC.MetadataReturns the enum constant of this type with the specified name.static NPC.Metadata[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
ACTIVATION_RANGEThe activation range. Integer, defaults to the server's configured activation range.
- 
AGGRESSIVE
- 
ALWAYS_USE_NAME_HOLOGRAM
- 
AMBIENT_SOUNDThe Minecraft ambient sound played.
- 
BOUNDING_BOX_FUNCTION
- 
COLLIDABLEWhether the NPC is collidable with Players or not.
- 
DAMAGE_OTHERSWhether the NPC can damage other Entities.
- 
DEATH_SOUNDThe Minecraft sound played when the NPC dies. String - Minecraft sound name.
- 
DEFAULT_PROTECTEDWhether the NPC is 'protected' i.e. invulnerable to damage.
- 
DISABLE_DEFAULT_STUCK_ACTIONWhether to disable the default stuck action (teleport to destination is default).
- 
DROPS_ITEMSWhether the NPC drops its inventory after death.
- 
FLUID_PUSHABLEWhether the NPC is pushable by fluids.
- 
FLYABLEWhether the NPC is 'flyable' i.e. will fly when pathfinding.
- 
FORCE_PACKET_UPDATEForces a singular packet update.
- 
GLOWINGWhether the NPC is currently glowing.
- 
HOLOGRAM_RENDERER
- 
HURT_SOUNDThe Minecraft sound to play when hurt.
- 
ITEM_AMOUNTThe Item amount.
- 
ITEM_DATAThe Item data.
- 
ITEM_IDThe Item ID. String.
- 
JUMP_POWER_SUPPLIER
- 
KEEP_CHUNK_LOADEDWhether to keep chunk loaded.
- 
KNOCKBACKSimple knockback toggle. Not set by default.
- 
LEASH_PROTECTEDWhether the NPC is leashable.
- 
MINECART_OFFSETThe Minecart item offset as defined by Minecraft.Minecart.setDisplayBlockOffset(int)
- 
NAMEPLATE_VISIBLEWhether the NPC's nameplate should be visible.
- 
NPC_SPAWNING_IN_PROGRESSInternal use only
- 
PACKET_UPDATE_DELAYThe packet update delay in ticks. Defaults to setting value.
- 
PATHFINDER_OPEN_DOORSWhether to open doors while pathfinding.
- 
PICKUP_ITEMSWhether to pick up items. Defaults to !isProtected().
- 
REMOVE_FROM_PLAYERLISTWhether to remove players from the player list. Defaults to true.
- 
REMOVE_FROM_TABLISTWhether to remove the NPC from the tablist. Defaults to the value in config.yml
- 
RESET_PITCH_ON_TICKWhether to reset entity pitch to0every tick (default Minecraft behaviour). Defaults to false.
- 
RESET_YAW_ON_SPAWNWhether to reset NPC yaw on spawn. Defaults to the config value (true by default).
- 
RESPAWN_DELAYThe Integer delay to respawn in ticks after death. Only works if non-zero.
- 
SCOREBOARD_FAKE_TEAM_NAMEThe fake NPC scoreboard team name because Minecraft requires a team name. Usually will be a random UUID in String form.
- 
SHOULD_SAVEWhether to save / persist across server restarts.
- 
SILENTWhether to suppress sounds.
- 
SPAWN_NODAMAGE_TICKSThe initial no damage ticks on spawn, defaults to 20. Integer
- 
SWIMWhether to allow swimming. Boolean.
- 
TEXT_DISPLAY_COMPONENT
- 
TRACKING_RANGEThe tracking distance for packets. Defaults to the default tracking distance defined by the server
- 
USE_MINECRAFT_AIWhether to use Minecraft AI.
- 
USING_HELD_ITEMWhether player is actively using held item. Defaults to false.
- 
USING_OFFHAND_ITEMWhether player is actively using offhand item. Defaults to false.
- 
VILLAGER_BLOCK_TRADESWhether to block Minecraft villager trades. Defaults to true.
- 
WATER_SPEED_MODIFIERSpeed modifier in water, percentage.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
accepts
- 
getKey
- 
getTypepublic com.google.common.reflect.TypeToken<?> getType()
- 
byKey
- 
byName
 
-