Enum NPC.Metadata

java.lang.Object
java.lang.Enum<NPC.Metadata>
net.citizensnpcs.api.npc.NPC.Metadata
All Implemented Interfaces:
Serializable, Comparable<NPC.Metadata>, java.lang.constant.Constable
Enclosing interface:
NPC

public static enum NPC.Metadata extends Enum<NPC.Metadata>
  • Enum Constant Details

    • ALWAYS_USE_NAME_HOLOGRAM

      public static final NPC.Metadata ALWAYS_USE_NAME_HOLOGRAM
    • AMBIENT_SOUND

      public static final NPC.Metadata AMBIENT_SOUND
      The Minecraft ambient sound played. String - Minecraft sound name
    • COLLIDABLE

      public static final NPC.Metadata COLLIDABLE
      Whether the NPC is collidable with Players or not. Boolean.
    • DAMAGE_OTHERS

      public static final NPC.Metadata DAMAGE_OTHERS
      Whether the NPC can damage other Entities. Boolean.
    • DEATH_SOUND

      public static final NPC.Metadata DEATH_SOUND
      The Minecraft sound played when the NPC dies. String - Minecraft sound name.
    • DEFAULT_PROTECTED

      public static final NPC.Metadata DEFAULT_PROTECTED
      Whether the NPC is 'protected' i.e. invulnerable to damage. Boolean.
    • DISABLE_DEFAULT_STUCK_ACTION

      public static final NPC.Metadata DISABLE_DEFAULT_STUCK_ACTION
    • DROPS_ITEMS

      public static final NPC.Metadata DROPS_ITEMS
      Whether the NPC drops its inventory after death. Boolean.
    • FLYABLE

      public static final NPC.Metadata FLYABLE
      Whether the NPC is 'flyable' i.e. will fly when pathfinding. Boolean.
    • GLOWING

      public static final NPC.Metadata GLOWING
      Whether the NPC is currently glowing. Boolean.
    • GLOWING_COLOR

      public static final NPC.Metadata GLOWING_COLOR
      The color to glow using Minecraft's scoreboard glowing feature. Should be a Enum.name(). DEPRECATED: use ScoreboardTrait instead
    • HURT_SOUND

      public static final NPC.Metadata HURT_SOUND
      The Minecraft sound to play when hurt. String - Minecraft sound name.
    • ITEM_AMOUNT

      public static final NPC.Metadata ITEM_AMOUNT
      The Item amount. Integer.
    • ITEM_DATA

      public static final NPC.Metadata ITEM_DATA
      The Item data. Byte.
    • ITEM_ID

      public static final NPC.Metadata ITEM_ID
      The Item ID. String.
    • KEEP_CHUNK_LOADED

      public static final NPC.Metadata KEEP_CHUNK_LOADED
      Whether to keep chunk loaded. Boolean.
    • LEASH_PROTECTED

      public static final NPC.Metadata LEASH_PROTECTED
      Whether the NPC is leashable. Boolean.
    • MINECART_ITEM

      public static final NPC.Metadata MINECART_ITEM
      The Minecart item name.
    • MINECART_ITEM_DATA

      public static final NPC.Metadata MINECART_ITEM_DATA
      The Minecart item data. Byte.
    • MINECART_OFFSET

      public static final NPC.Metadata MINECART_OFFSET
      The Minecart item offset as defined by Minecraft. Minecart.setDisplayBlockOffset(int)
    • NAMEPLATE_VISIBLE

      public static final NPC.Metadata NAMEPLATE_VISIBLE
      Whether the NPC's nameplate should be visible. Boolean.
    • PACKET_UPDATE_DELAY

      public static final NPC.Metadata PACKET_UPDATE_DELAY
      The packet update delay. Integer defaults to setting value.
    • PATHFINDER_OPEN_DOORS

      public static final NPC.Metadata PATHFINDER_OPEN_DOORS
      Whether to open doors while pathfinding. Boolean.
    • PICKUP_ITEMS

      public static final NPC.Metadata PICKUP_ITEMS
      Whether to pick up items. Boolean defaults to isProtected().
    • PLAYER_SKIN_TEXTURE_PROPERTIES

      @Deprecated public static final NPC.Metadata PLAYER_SKIN_TEXTURE_PROPERTIES
      Deprecated.
      See Also:
      • SkinTrait
    • PLAYER_SKIN_TEXTURE_PROPERTIES_SIGN

      @Deprecated public static final NPC.Metadata PLAYER_SKIN_TEXTURE_PROPERTIES_SIGN
      Deprecated.
      See Also:
      • SkinTrait
    • PLAYER_SKIN_USE_LATEST

      @Deprecated public static final NPC.Metadata PLAYER_SKIN_USE_LATEST
      Deprecated.
      See Also:
      • SkinTrait
    • PLAYER_SKIN_UUID

      @Deprecated public static final NPC.Metadata PLAYER_SKIN_UUID
      Deprecated.
      See Also:
      • SkinTrait
    • REMOVE_FROM_PLAYERLIST

      public static final NPC.Metadata REMOVE_FROM_PLAYERLIST
      Whether to remove players from the player list. Boolean defaults to true.
    • RESPAWN_DELAY

      public static final NPC.Metadata RESPAWN_DELAY
      The Integer delay to respawn in ticks after death. Only works if non-zero.
    • SCOREBOARD_FAKE_TEAM_NAME

      public static final NPC.Metadata 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

      public static final NPC.Metadata SHOULD_SAVE
      Whether to save / persist across server restarts. Boolean.
    • SILENT

      public static final NPC.Metadata SILENT
      Whether to suppress sounds. Boolean.
    • SNEAKING

      public static final NPC.Metadata SNEAKING
      Whether to sneak. Boolean.
    • SPAWN_NODAMAGE_TICKS

      public static final NPC.Metadata SPAWN_NODAMAGE_TICKS
      The initial no damage ticks on spawn, defaults to 20. Integer
    • SWIMMING

      public static final NPC.Metadata SWIMMING
      Whether to allow swimming. Boolean.
    • TARGETABLE

      public static final NPC.Metadata TARGETABLE
      Whether to prevent NPC being targeted by hostile mobs. Boolean.
    • USE_MINECRAFT_AI

      public static final NPC.Metadata USE_MINECRAFT_AI
      Whether to use Minecraft AI. Boolean.
    • USING_HELD_ITEM

      public static final NPC.Metadata USING_HELD_ITEM
      Whether player is actively using held item. Boolean defaults to false.
    • USING_OFFHAND_ITEM

      public static final NPC.Metadata USING_OFFHAND_ITEM
      Whether player is actively using offhand item. Boolean defaults to false.
    • VILLAGER_BLOCK_TRADES

      public static final NPC.Metadata VILLAGER_BLOCK_TRADES
      Whether to block Minecraft villager trades. Boolean defaults to true.
  • Method Details

    • values

      public static NPC.Metadata[] 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

      public static NPC.Metadata valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getKey

      public String getKey()