Package net.citizensnpcs.api.npc
Enum NPC.Metadata
- All Implemented Interfaces:
Serializable
,Comparable<NPC.Metadata>
,java.lang.constant.Constable
- Enclosing interface:
- NPC
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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.Whether the NPC drops its inventory after death.Whether the NPC is pushable by fluids.Whether the NPC is 'flyable' i.e.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.Whether the NPC is leashable.The Minecart item name.The Minecart item data.The Minecart item offset as defined by Minecraft.Whether the NPC's nameplate should be visible.The packet update delay.Whether to open doors while pathfinding.Whether to pick up items.Deprecated.Deprecated.Deprecated.Deprecated.Whether to remove players from the player list.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.Whether to sneak.The initial no damage ticks on spawn, defaults to 20.Whether to allow swimming.Whether to prevent NPC being targeted by hostile mobs.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic NPC.Metadata
static NPC.Metadata
getKey()
static NPC.Metadata
Returns 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_RANGE
The activation range. Integer, defaults to the configured activation range. -
AGGRESSIVE
-
ALWAYS_USE_NAME_HOLOGRAM
-
AMBIENT_SOUND
The Minecraft ambient sound played. String - Minecraft sound name -
COLLIDABLE
Whether the NPC is collidable with Players or not. Boolean. -
DAMAGE_OTHERS
Whether the NPC can damage other Entities. Boolean. -
DEATH_SOUND
The Minecraft sound played when the NPC dies. String - Minecraft sound name. -
DEFAULT_PROTECTED
Whether the NPC is 'protected' i.e. invulnerable to damage. Boolean. -
DISABLE_DEFAULT_STUCK_ACTION
-
DROPS_ITEMS
Whether the NPC drops its inventory after death. Boolean. -
FLUID_PUSHABLE
Whether the NPC is pushable by fluids. Boolean. -
FLYABLE
Whether the NPC is 'flyable' i.e. will fly when pathfinding. Boolean. -
FORCE_PACKET_UPDATE
Forces a singular packet update. Boolean. -
GLOWING
Whether the NPC is currently glowing. Boolean. -
HURT_SOUND
The Minecraft sound to play when hurt. String - Minecraft sound name. -
ITEM_AMOUNT
The Item amount. Integer. -
ITEM_DATA
The Item data. Byte. -
ITEM_ID
The Item ID. String. -
KEEP_CHUNK_LOADED
Whether to keep chunk loaded. Boolean. -
LEASH_PROTECTED
Whether the NPC is leashable. Boolean. -
MINECART_ITEM
The Minecart item name. -
MINECART_ITEM_DATA
The Minecart item data. Byte. -
MINECART_OFFSET
The Minecart item offset as defined by Minecraft.Minecart.setDisplayBlockOffset(int)
-
NAMEPLATE_VISIBLE
Whether the NPC's nameplate should be visible. Boolean. -
PACKET_UPDATE_DELAY
The packet update delay. Integer defaults to setting value. -
PATHFINDER_OPEN_DOORS
Whether to open doors while pathfinding. Boolean. -
PICKUP_ITEMS
Whether to pick up items. Boolean defaults to isProtected(). -
PLAYER_SKIN_TEXTURE_PROPERTIES
Deprecated.- See Also:
-
SkinTrait
-
PLAYER_SKIN_TEXTURE_PROPERTIES_SIGN
Deprecated.- See Also:
-
SkinTrait
-
PLAYER_SKIN_USE_LATEST
Deprecated.- See Also:
-
SkinTrait
-
PLAYER_SKIN_UUID
Deprecated.- See Also:
-
SkinTrait
-
REMOVE_FROM_PLAYERLIST
Whether to remove players from the player list. Boolean defaults to true. -
RESPAWN_DELAY
The Integer delay to respawn in ticks after death. Only works if non-zero. -
SCOREBOARD_FAKE_TEAM_NAME
The fake NPC scoreboard team name because Minecraft requires a team name. Usually will be a random UUID in String form. -
SHOULD_SAVE
Whether to save / persist across server restarts. Boolean. -
SILENT
Whether to suppress sounds. Boolean. -
SNEAKING
Whether to sneak. Boolean. -
SPAWN_NODAMAGE_TICKS
The initial no damage ticks on spawn, defaults to 20. Integer -
SWIMMING
Whether to allow swimming. Boolean. -
TARGETABLE
Whether to prevent NPC being targeted by hostile mobs. Boolean. -
TRACKING_RANGE
The tracking distance for packets. Integer, defaults to the default tracking distance defined by the server -
USE_MINECRAFT_AI
Whether to use Minecraft AI. Boolean. -
USING_HELD_ITEM
Whether player is actively using held item. Boolean defaults to false. -
USING_OFFHAND_ITEM
Whether player is actively using offhand item. Boolean defaults to false. -
VILLAGER_BLOCK_TRADES
Whether to block Minecraft villager trades. Boolean defaults to true.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getKey
-
byKey
-
byName
-