AbstractArrow
, AbstractHorse
, AbstractVillager
, Ageable
, Ambient
, Animals
, AreaEffectCloud
, ArmorStand
, Arrow
, Banner
, Barrel
, Bat
, Beacon
, Bed
, Bee
, Beehive
, Bell
, BlastFurnace
, Blaze
, Block
, BlockState
, Boat
, Boss
, BrewingStand
, Campfire
, Cat
, 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
, Flying
, Fox
, Furnace
, Ghast
, Giant
, Golem
, Guardian
, Hanging
, Hopper
, HopperMinecart
, Horse
, HumanEntity
, Husk
, Illager
, Illusioner
, IronGolem
, Item
, ItemFrame
, Jigsaw
, Jukebox
, LargeFireball
, LeashHitch
, Lectern
, LightningStrike
, LingeringPotion
, LivingEntity
, Llama
, LlamaSpit
, MagmaCube
, Minecart
, Mob
, Monster
, Mule
, MushroomCow
, NPC
, Ocelot
, Painting
, Panda
, Parrot
, Phantom
, Pig
, PigZombie
, Pillager
, Player
, PolarBear
, PoweredMinecart
, Projectile
, PufferFish
, Rabbit
, Raider
, Ravager
, RideableMinecart
, Salmon
, Sheep
, Shulker
, ShulkerBox
, ShulkerBullet
, Sign
, Silverfish
, Skeleton
, SkeletonHorse
, Skull
, Slime
, SmallFireball
, Smoker
, Snowball
, Snowman
, SpawnerMinecart
, SpectralArrow
, Spellcaster
, Spider
, SplashPotion
, Squid
, StorageMinecart
, Stray
, Structure
, Tameable
, ThrownExpBottle
, ThrownPotion
, TileState
, TippedArrow
, TNTPrimed
, TraderLlama
, Trident
, TropicalFish
, Turtle
, Vehicle
, Vex
, Villager
, Vindicator
, WanderingTrader
, WaterMob
, 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.