AbstractArrow
, AbstractHorse
, AbstractVillager
, Ageable
, Ambient
, Animals
, AreaEffectCloud
, ArmorStand
, Arrow
, Barrel
, Bat
, Beacon
, Bee
, BlastFurnace
, Blaze
, Boat
, Boss
, BrewingStand
, Cat
, CaveSpider
, Chest
, ChestedHorse
, Chicken
, Cod
, CommandMinecart
, ComplexEntityPart
, ComplexLivingEntity
, Container
, Cow
, Creature
, Creeper
, Damageable
, Dispenser
, Dolphin
, Donkey
, DragonFireball
, Dropper
, Drowned
, Egg
, ElderGuardian
, EnchantingTable
, EnderCrystal
, EnderDragon
, EnderDragonPart
, Enderman
, Endermite
, EnderPearl
, EnderSignal
, 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
, LargeFireball
, LeashHitch
, 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
, RangedEntity
, Ravager
, RideableMinecart
, Salmon
, Sheep
, Shulker
, ShulkerBox
, ShulkerBullet
, Silverfish
, SizedFireball
, Skeleton
, SkeletonHorse
, Slime
, SmallFireball
, Smoker
, Snowball
, Snowman
, SpawnerMinecart
, SpectralArrow
, Spellcaster
, Spider
, SplashPotion
, Squid
, StorageMinecart
, Stray
, Tameable
, ThrowableProjectile
, ThrownExpBottle
, ThrownPotion
, TippedArrow
, TNTPrimed
, TraderLlama
, Trident
, TropicalFish
, Turtle
, Vehicle
, Vex
, Villager
, Vindicator
, WanderingTrader
, WaterMob
, Witch
, Wither
, WitherSkeleton
, WitherSkull
, Wolf
, Zombie
, ZombieHorse
, ZombieVillager
public interface Nameable
Modifier and Type | Method | Description |
---|---|---|
@Nullable String |
getCustomName() |
Gets the custom name on a mob or block.
|
void |
setCustomName(@Nullable String name) |
Sets a custom name on a mob or block.
|
@Nullable @Nullable String getCustomName()
This value has no effect on players, they will always use their real name.
void setCustomName(@Nullable @Nullable String name)
Setting the name to null or an empty string will clear it.
This value has no effect on players, they will always use their real name.
name
- the name to setCopyright © 2020. All rights reserved.