AbstractHorse
, Ageable
, Ambient
, Animals
, AreaEffectCloud
, ArmorStand
, Arrow
, Banner
, Bat
, Beacon
, Bed
, Blaze
, Block
, BlockState
, Boat
, Boss
, 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 |
---|---|---|
List<MetadataValue> |
getMetadata(String metadataKey) |
Returns a list of previously set metadata values from the implementing
object's metadata store.
|
boolean |
hasMetadata(String metadataKey) |
Tests to see whether the implementing object contains the given
metadata value in its metadata store.
|
void |
removeMetadata(String metadataKey,
Plugin owningPlugin) |
Removes the given metadata value from the implementing object's
metadata store.
|
void |
setMetadata(String metadataKey,
MetadataValue newMetadataValue) |
Sets a metadata value in the implementing object's metadata store.
|
void setMetadata(@NotNull String metadataKey, @NotNull MetadataValue newMetadataValue)
metadataKey
- A unique key to identify this metadata.newMetadataValue
- The metadata value to apply.IllegalArgumentException
- If value is null, or the owning plugin
is null@NotNull List<MetadataValue> getMetadata(@NotNull String metadataKey)
metadataKey
- the unique metadata key being sought.boolean hasMetadata(@NotNull String metadataKey)
metadataKey
- the unique metadata key being queried.void removeMetadata(@NotNull String metadataKey, @NotNull 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.IllegalArgumentException
- If plugin is nullCopyright © 2019. All rights reserved.