Package net.minecraft.util
Interface Nameable
- All Known Implementing Classes:
AbstractClientPlayerEntity
,AbstractDecorationEntity
,AbstractDonkeyEntity
,AbstractFireballEntity
,AbstractFurnaceBlockEntity
,AbstractHorseEntity
,AbstractMinecartEntity
,AbstractPiglinEntity
,AbstractSkeletonEntity
,AbstractWindChargeEntity
,AllayEntity
,AmbientEntity
,AnimalEntity
,AreaEffectCloudEntity
,ArmadilloEntity
,ArmorStandEntity
,ArrowEntity
,AxolotlEntity
,BannerBlockEntity
,BarrelBlockEntity
,BatEntity
,BeaconBlockEntity
,BeeEntity
,BlastFurnaceBlockEntity
,BlazeEntity
,BlockAttachedEntity
,BoatEntity
,BoggedEntity
,BreezeEntity
,BreezeWindChargeEntity
,BrewingStandBlockEntity
,CamelEntity
,CatEntity
,CaveSpiderEntity
,ChestBlockEntity
,ChestBoatEntity
,ChestMinecartEntity
,ChickenEntity
,ClientPlayerEntity
,CodEntity
,CommandBlockMinecartEntity
,CowEntity
,CrafterBlockEntity
,CreeperEntity
,DispenserBlockEntity
,DisplayEntity
,DisplayEntity.BlockDisplayEntity
,DisplayEntity.ItemDisplayEntity
,DisplayEntity.TextDisplayEntity
,DolphinEntity
,DonkeyEntity
,DragonFireballEntity
,DropperBlockEntity
,DrownedEntity
,EggEntity
,ElderGuardianEntity
,EnchantingTableBlockEntity
,EndCrystalEntity
,EnderDragonEntity
,EnderDragonPart
,EndermanEntity
,EndermiteEntity
,EnderPearlEntity
,Entity
,EvokerEntity
,EvokerFangsEntity
,ExperienceBottleEntity
,ExperienceOrbEntity
,ExplosiveProjectileEntity
,EyeOfEnderEntity
,FallingBlockEntity
,FireballEntity
,FireworkRocketEntity
,FishEntity
,FishingBobberEntity
,FlyingEntity
,FoxEntity
,FrogEntity
,FurnaceBlockEntity
,FurnaceMinecartEntity
,GhastEntity
,GiantEntity
,GlowItemFrameEntity
,GlowSquidEntity
,GoatEntity
,GolemEntity
,GuardianEntity
,HoglinEntity
,HopperBlockEntity
,HopperMinecartEntity
,HorseEntity
,HostileEntity
,HuskEntity
,IllagerEntity
,IllusionerEntity
,InteractionEntity
,IronGolemEntity
,ItemEntity
,ItemFrameEntity
,LeashKnotEntity
,LightningEntity
,LivingEntity
,LlamaEntity
,LlamaSpitEntity
,LockableContainerBlockEntity
,LootableContainerBlockEntity
,MagmaCubeEntity
,MarkerEntity
,MerchantEntity
,MinecartEntity
,MobEntity
,MooshroomEntity
,MuleEntity
,OcelotEntity
,OminousItemSpawnerEntity
,OtherClientPlayerEntity
,PaintingEntity
,PandaEntity
,ParrotEntity
,PassiveEntity
,PathAwareEntity
,PatrolEntity
,PersistentProjectileEntity
,PhantomEntity
,PigEntity
,PiglinBruteEntity
,PiglinEntity
,PillagerEntity
,PlayerEntity
,PlayerInventory
,PolarBearEntity
,PotionEntity
,ProjectileEntity
,PufferfishEntity
,RabbitEntity
,RaiderEntity
,RavagerEntity
,SalmonEntity
,SchoolingFishEntity
,ServerPlayerEntity
,SheepEntity
,ShulkerBoxBlockEntity
,ShulkerBulletEntity
,ShulkerEntity
,SilverfishEntity
,SkeletonEntity
,SkeletonHorseEntity
,SlimeEntity
,SmallFireballEntity
,SmokerBlockEntity
,SnifferEntity
,SnowballEntity
,SnowGolemEntity
,SpawnerMinecartEntity
,SpectralArrowEntity
,SpellcastingIllagerEntity
,SpiderEntity
,SquidEntity
,StorageMinecartEntity
,StrayEntity
,StriderEntity
,TadpoleEntity
,TameableEntity
,TameableShoulderEntity
,ThrownEntity
,ThrownItemEntity
,TntEntity
,TntMinecartEntity
,TraderLlamaEntity
,TrappedChestBlockEntity
,TridentEntity
,TropicalFishEntity
,TurtleEntity
,VehicleEntity
,VexEntity
,VillagerEntity
,VindicatorEntity
,WanderingTraderEntity
,WardenEntity
,WaterCreatureEntity
,WindChargeEntity
,WitchEntity
,WitherEntity
,WitherSkeletonEntity
,WitherSkullEntity
,WolfEntity
,ZoglinEntity
,ZombieEntity
,ZombieHorseEntity
,ZombieVillagerEntity
,ZombifiedPiglinEntity
public interface Nameable
Represents something that can be named, such as block entities or entities.
- Mappings:
Namespace Name named net/minecraft/util/Nameable
intermediary net/minecraft/class_1275
official bqv
-
Method Details
-
getName
Text getName()Returns the name of this object.This should return the custom name if it exists, otherwise the default name. This should not have styling applied.
- Returns:
- the name of this object
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
intermediary method_5477
Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
official ah
Lbqv;ah()Lwy;
-
hasCustomName
default boolean hasCustomName()Returns whether this object has a custom name.- Returns:
- whether this object has a custom name
- Mappings:
Namespace Name Mixin selector named hasCustomName
Lnet/minecraft/util/Nameable;hasCustomName()Z
intermediary method_16914
Lnet/minecraft/class_1275;method_16914()Z
official ai
Lbqv;ai()Z
-
getDisplayName
Returns the display name of this object.By default, this returns the result of
getName()
. The return value can have styling applied.- Returns:
- the display name of this object
- Mappings:
Namespace Name Mixin selector named getDisplayName
Lnet/minecraft/util/Nameable;getDisplayName()Lnet/minecraft/text/Text;
intermediary method_5476
Lnet/minecraft/class_1275;method_5476()Lnet/minecraft/class_2561;
official O_
Lbqv;O_()Lwy;
-
getCustomName
Returns the custom name of this object, ornull
if there is none.- Returns:
- the custom name of this object, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getCustomName
Lnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
intermediary method_5797
Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;
official aj
Lbqv;aj()Lwy;
-