Interface AttributeHolder
- All Known Subinterfaces:
Agent,Allay,Ambient,Animal,Aquatic,Armadillo,ArmorStand,Axolotl,Bat,Bee,Blaze,Bogged,Breeze,Camel,CamelHusk,Cat,CaveSpider,Chicken,ClientPlayer,Cod,ComplexLiving<T>,CopperGolem,Cow,Creaking,Creeper,Dolphin,Donkey,Drowned,ElderGuardian,EnderDragon,Enderman,Endermite,Evoker,Fish,Fox,Frog,Ghast,Giant,GlowSquid,Goat,Golem,Guardian,HappyGhast,Hoglin,Horse,HorseLike,Human,Humanoid,Husk,Illager,Illusioner,IronGolem,Living,Llama,LocalPlayer,MagmaCube,Mannequin,Monster,Mooshroom,Mule,Nautilus,NautilusLike,Ocelot,PackHorse,Panda,Parched,Parrot,PathfinderAgent,Patroller,Phantom,Pig,Piglin,PiglinBrute,PiglinLike,Pillager,Player,PolarBear,Pufferfish,Rabbit,Raider,RangedAgent,Ravager,RemotePlayer,Salmon,SchoolingFish,ServerPlayer,Sheep,Shulker,Silverfish,Skeleton,SkeletonHorse,SkeletonLike,Slime,Sniffer,SnowGolem,Spellcaster,Spider,Squid,Stray,Strider,Tadpole,TameableAnimal,TraderLlama,TropicalFish,Turtle,Vex,Villager,VillagerLike,Vindicator,WanderingTrader,Warden,Witch,Wither,WitherSkeleton,Wolf,Zoglin,Zombie,ZombieHorse,ZombieNautilus,ZombieVillager,ZombifiedPiglin
public interface AttributeHolder
-
Method Summary
Modifier and TypeMethodDescriptionattribute(Supplier<? extends AttributeType> type) Gets anAttributefrom this entityattribute(AttributeType type) Gets anAttributefrom this entitydefaultAttribute(Supplier<? extends AttributeType> type) Gets an immutable copy of the defaultAttributefrom this entity.Gets an immutable copy of the defaultAttributefrom this entity.
-
Method Details
-
attribute
Gets anAttributefrom this entity- Parameters:
type- The attribute type.- Returns:
- An attribute, if present.
-
attribute
Gets anAttributefrom this entity- Parameters:
type- The attribute type.- Returns:
- An attribute, if present.
-
defaultAttribute
Gets an immutable copy of the defaultAttributefrom this entity.- Parameters:
type- The attribute type.- Returns:
- An attribute, if present.
-
defaultAttribute
Gets an immutable copy of the defaultAttributefrom this entity.- Parameters:
type- The attribute type.- Returns:
- An attribute, if present.
-