AbstractHorse
, Ageable
, Ambient
, Animals
, AreaEffectCloud
, ArmorStand
, Arrow
, Banner
, Bat
, Beacon
, Bed
, Blaze
, Block
, BlockState
, Boat
, BrewingStand
, CaveSpider
, Chest
, ChestedHorse
, Chicken
, Cod
, CommandBlock
, CommandMinecart
, Comparator
, ComplexEntityPart
, ComplexLivingEntity
, Conduit
, Container
, Cow
, Creature
, CreatureSpawner
, Creeper
, Damageable
, DaylightDetector
, Dispenser
, Dolphin
, Donkey
, DragonFireball
, Dropper
, Drowned
, Egg
, ElderGuardian
, EnchantingTable
, EnderChest
, EnderCrystal
, EnderDragon
, EnderDragonPart
, Enderman
, Endermite
, EnderPearl
, EnderSignal
, EndGateway
, Entity
, Evoker
, EvokerFangs
, ExperienceOrb
, Explosive
, ExplosiveMinecart
, FallingBlock
, Fireball
, Firework
, Fish
, FishHook
, FlowerPot
, Flying
, Furnace
, Ghast
, Giant
, Golem
, Guardian
, Hanging
, Hopper
, HopperMinecart
, Horse
, HumanEntity
, Husk
, Illager
, Illusioner
, IronGolem
, Item
, ItemFrame
, Jukebox
, LargeFireball
, LeashHitch
, LightningStrike
, LingeringPotion
, LivingEntity
, Llama
, LlamaSpit
, MagmaCube
, Minecart
, Mob
, Monster
, Mule
, MushroomCow
, NoteBlock
, NPC
, Ocelot
, Painting
, Parrot
, Phantom
, Pig
, PigZombie
, Player
, PolarBear
, PoweredMinecart
, Projectile
, PufferFish
, Rabbit
, RideableMinecart
, Salmon
, Sheep
, Shulker
, ShulkerBox
, ShulkerBullet
, Sign
, Silverfish
, Skeleton
, SkeletonHorse
, Skull
, Slime
, SmallFireball
, Snowball
, Snowman
, SpawnerMinecart
, SpectralArrow
, Spellcaster
, Spider
, SplashPotion
, Squid
, StorageMinecart
, Stray
, Structure
, Tameable
, ThrownExpBottle
, ThrownPotion
, TippedArrow
, TNTPrimed
, Trident
, TropicalFish
, Turtle
, Vehicle
, Vex
, Villager
, Vindicator
, WaterMob
, Weather
, Witch
, Wither
, WitherSkeleton
, WitherSkull
, Wolf
, World
, Zombie
, ZombieHorse
, ZombieVillager
public interface Metadatable
Modifier and Type | Method | Description |
---|---|---|
java.util.List<MetadataValue> |
getMetadata(java.lang.String metadataKey) |
Returns a list of previously set metadata values from the implementing
object's metadata store.
|
boolean |
hasMetadata(java.lang.String metadataKey) |
Tests to see whether the implementing object contains the given
metadata value in its metadata store.
|
void |
removeMetadata(java.lang.String metadataKey,
Plugin owningPlugin) |
Removes the given metadata value from the implementing object's
metadata store.
|
void |
setMetadata(java.lang.String metadataKey,
MetadataValue newMetadataValue) |
Sets a metadata value in the implementing object's metadata store.
|
void setMetadata(java.lang.String metadataKey, MetadataValue newMetadataValue)
metadataKey
- A unique key to identify this metadata.newMetadataValue
- The metadata value to apply.java.lang.IllegalArgumentException
- If value is null, or the owning plugin
is nulljava.util.List<MetadataValue> getMetadata(java.lang.String metadataKey)
metadataKey
- the unique metadata key being sought.boolean hasMetadata(java.lang.String metadataKey)
metadataKey
- the unique metadata key being queried.void removeMetadata(java.lang.String metadataKey, Plugin owningPlugin)
metadataKey
- the unique metadata key identifying the metadata to
remove.owningPlugin
- This plugin's metadata value will be removed. All
other values will be left untouched.java.lang.IllegalArgumentException
- If plugin is nullCopyright © 2018. All rights reserved.