Interface AttributeHolder
-
- All Known Subinterfaces:
Aerial,Ageable,Agent,Ambient,Animal,Aquatic,ArmorStand,Bat,Bee,Blaze,Boss,Cat,CaveSpider,Chicken,ClientPlayer,Cod,ComplexLiving<T>,Cow,Creature,Creeper,Dolphin,Donkey,Drowned,ElderGuardian,EnderDragon,Enderman,Endermite,Evoker,Fish,Fox,Ghast,Giant,Golem,Guardian,Hoglin,Horse,HorseLike,Hostile,Human,Humanoid,Husk,Illager,Illusioner,IronGolem,Living,Llama,LlamaLike,LocalPlayer,MagmaCube,Monster,Mooshroom,Mule,Ocelot,PackHorse,Panda,Parrot,Patroller,Phantom,Pig,Piglin,PiglinBrute,PiglinLike,Pillager,Player,PolarBear,Pufferfish,Rabbit,Raider,Ranger,Ravager,RemotePlayer,Salmon,SchoolingFish,ServerPlayer,Sheep,Shulker,Silverfish,Skeleton,SkeletonHorse,SkeletonLike,Slime,SnowGolem,Spellcaster,Spider,Squid,Stray,Strider,TameableAnimal,TameableHorse,Trader,TraderLlama,TropicalFish,Turtle,Vex,Villager,Vindicator,WanderingTrader,Witch,Wither,WitherSkeleton,Wolf,Zoglin,Zombie,ZombieHorse,ZombieLike,ZombieVillager,ZombifiedPiglin
public interface AttributeHolder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<Attribute>attribute(Supplier<? extends AttributeType> type)Gets anAttributefrom this entityOptional<Attribute>attribute(AttributeType type)Gets anAttributefrom this entity
-
-
-
Method Detail
-
attribute
default Optional<Attribute> attribute(Supplier<? extends AttributeType> type)
Gets anAttributefrom this entity- Parameters:
type- The attribute type.- Returns:
- An attribute, if present.
-
attribute
Optional<Attribute> attribute(AttributeType type)
Gets anAttributefrom this entity- Parameters:
type- The attribute type.- Returns:
- An attribute, if present.
-
-