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

    • ACTIVATION_RANGE

      public static final NPC.Metadata ACTIVATION_RANGE
      The activation range. Integer, defaults to the server's configured activation range.
    • AGGRESSIVE

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

      public static final NPC.Metadata BOUNDING_BOX_FUNCTION
    • COLLIDABLE

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

      public static final NPC.Metadata DAMAGE_OTHERS
      Whether the NPC can damage other Entities.
    • 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.
    • DISABLE_DEFAULT_STUCK_ACTION

      public static final NPC.Metadata DISABLE_DEFAULT_STUCK_ACTION
      Whether to disable the default stuck action (teleport to destination is default).
    • DROPS_ITEMS

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

      public static final NPC.Metadata FLUID_PUSHABLE
      Whether the NPC is pushable by fluids.
    • FLYABLE

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

      public static final NPC.Metadata FORCE_PACKET_UPDATE
      Forces a singular packet update.
    • GLOWING

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

      public static final NPC.Metadata HOLOGRAM_RENDERER
    • HURT_SOUND

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

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

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

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

      public static final NPC.Metadata JUMP_POWER_SUPPLIER
    • KEEP_CHUNK_LOADED

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

      public static final NPC.Metadata KNOCKBACK
      Simple knockback toggle. Not set by default.
    • LEASH_PROTECTED

      public static final NPC.Metadata LEASH_PROTECTED
      Whether the NPC is leashable.
    • 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.
    • NPC_SPAWNING_IN_PROGRESS

      public static final NPC.Metadata NPC_SPAWNING_IN_PROGRESS
      Internal use only
    • PACKET_UPDATE_DELAY

      public static final NPC.Metadata PACKET_UPDATE_DELAY
      The packet update delay in ticks. Defaults to setting value.
    • PATHFINDER_FALL_DISTANCE

      public static final NPC.Metadata PATHFINDER_FALL_DISTANCE
    • PATHFINDER_OPEN_DOORS

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

      public static final NPC.Metadata PICKUP_ITEMS
      Whether to pick up items. Defaults to !isProtected().
    • REMOVE_FROM_PLAYERLIST

      public static final NPC.Metadata REMOVE_FROM_PLAYERLIST
      Whether to remove players from the player list. Defaults to true.
    • REMOVE_FROM_TABLIST

      public static final NPC.Metadata REMOVE_FROM_TABLIST
      Whether to remove the NPC from the tablist. Defaults to the value in config.yml
    • RESET_PITCH_ON_TICK

      public static final NPC.Metadata RESET_PITCH_ON_TICK
      Whether to reset entity pitch to 0 every tick (default Minecraft behaviour). Defaults to false.
    • RESET_YAW_ON_SPAWN

      public static final NPC.Metadata RESET_YAW_ON_SPAWN
      Whether to reset NPC yaw on spawn. Defaults to the config value (true by default).
    • 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.
    • SILENT

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

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

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

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

      public static final NPC.Metadata TEXT_DISPLAY_COMPONENT
    • TRACKING_RANGE

      public static final NPC.Metadata TRACKING_RANGE
      The tracking distance for packets. Defaults to the default tracking distance defined by the server
    • USE_MINECRAFT_AI

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

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

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

      public static final NPC.Metadata VILLAGER_BLOCK_TRADES
      Whether to block Minecraft villager trades. Defaults to true.
    • WATER_SPEED_MODIFIER

      public static final NPC.Metadata WATER_SPEED_MODIFIER
      Speed modifier in water, percentage.
  • 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()
    • getType

      public com.google.common.reflect.TypeToken<?> getType()
    • byKey

      public static NPC.Metadata byKey(String name)
    • byName

      public static NPC.Metadata byName(String name)