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 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 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.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 name.The Minecart item data.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 to0
every 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.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.Speed modifier in water, percentage. -
Method Summary
Modifier and TypeMethodDescriptionstatic NPC.Metadata
static NPC.Metadata
getKey()
com.google.common.reflect.TypeToken
<?> getType()
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 server's configured activation range. -
AGGRESSIVE
-
ALWAYS_USE_NAME_HOLOGRAM
-
AMBIENT_SOUND
The Minecraft ambient sound played. -
BOUNDING_BOX_FUNCTION
-
COLLIDABLE
Whether the NPC is collidable with Players or not. -
DAMAGE_OTHERS
Whether the NPC can damage other Entities. -
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. -
DISABLE_DEFAULT_STUCK_ACTION
Whether to disable the default stuck action (teleport to destination is default). -
DROPS_ITEMS
Whether the NPC drops its inventory after death. -
FLUID_PUSHABLE
Whether the NPC is pushable by fluids. -
FLYABLE
Whether the NPC is 'flyable' i.e. will fly when pathfinding. -
FORCE_PACKET_UPDATE
Forces a singular packet update. -
GLOWING
Whether the NPC is currently glowing. -
HOLOGRAM_RENDERER
-
HURT_SOUND
The Minecraft sound to play when hurt. -
ITEM_AMOUNT
The Item amount. -
ITEM_DATA
The Item data. -
ITEM_ID
The Item ID. String. -
JUMP_POWER_SUPPLIER
-
KEEP_CHUNK_LOADED
Whether to keep chunk loaded. -
KNOCKBACK
Simple knockback toggle. Not set by default. -
LEASH_PROTECTED
Whether the NPC is leashable. -
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. -
NPC_SPAWNING_IN_PROGRESS
Internal use only -
PACKET_UPDATE_DELAY
The packet update delay in ticks. Defaults to setting value. -
PATHFINDER_FALL_DISTANCE
-
PATHFINDER_OPEN_DOORS
Whether to open doors while pathfinding. -
PICKUP_ITEMS
Whether to pick up items. Defaults to !isProtected(). -
REMOVE_FROM_PLAYERLIST
Whether to remove players from the player list. Defaults to true. -
REMOVE_FROM_TABLIST
Whether to remove the NPC from the tablist. Defaults to the value in config.yml -
RESET_PITCH_ON_TICK
Whether to reset entity pitch to0
every tick (default Minecraft behaviour). Defaults to false. -
RESET_YAW_ON_SPAWN
Whether to reset NPC yaw on spawn. Defaults to the config value (true by default). -
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. -
SILENT
Whether to suppress sounds. -
SPAWN_NODAMAGE_TICKS
The initial no damage ticks on spawn, defaults to 20. Integer -
SWIM
Whether to allow swimming. Boolean. -
TARGETABLE
Whether to prevent NPC being targeted by hostile mobs. -
TEXT_DISPLAY_COMPONENT
-
TRACKING_RANGE
The tracking distance for packets. Defaults to the default tracking distance defined by the server -
USE_MINECRAFT_AI
Whether to use Minecraft AI. -
USING_HELD_ITEM
Whether player is actively using held item. Defaults to false. -
USING_OFFHAND_ITEM
Whether player is actively using offhand item. Defaults to false. -
VILLAGER_BLOCK_TRADES
Whether to block Minecraft villager trades. Defaults to true. -
WATER_SPEED_MODIFIER
Speed modifier in water, percentage.
-
-
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
-
getType
public com.google.common.reflect.TypeToken<?> getType() -
byKey
-
byName
-