Interface ArmorEquipable

All Superinterfaces:
Equipable
All Known Subinterfaces:
Agent, Allay, Ambient, Animal, Aquatic, Armadillo, ArmorStand, Axolotl, Bat, Bee, Blaze, Bogged, Breeze, Camel, CamelHusk, Cat, CaveSpider, Chicken, ClientPlayer, Cod, 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, Llama, LocalPlayer, MagmaCube, 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, User, Vex, Villager, VillagerLike, Vindicator, WanderingTrader, Warden, Witch, Wither, WitherSkeleton, Wolf, Zoglin, Zombie, ZombieHorse, ZombieNautilus, ZombieVillager, ZombifiedPiglin

public interface ArmorEquipable extends Equipable

Represents something that can be equipped with armor, main hand and off hand items. Each method here is a shorthand for the appropriate Equipable.equipped(EquipmentType) or Equipable.equip(EquipmentType, ItemStackLike) method call.

Classes implementing this interface should provide all of the supplied equipment slot types. Classes which do not support all slot types in this interface should instead implement Equipable.

  • Method Details

    • head

      ItemStack head()
      Gets the head.
      Returns:
      The head, if available
    • setHead

      void setHead(ItemStackLike head)
      Sets the head.
      Parameters:
      head - The head
    • chest

      ItemStack chest()
      Gets the chest.
      Returns:
      The chest, if available
    • setChest

      void setChest(ItemStackLike chest)
      Sets the chest.
      Parameters:
      chest - The chest
    • legs

      ItemStack legs()
      Gets the legs.
      Returns:
      The legs, if available
    • setLegs

      void setLegs(ItemStackLike legs)
      Sets the legs.
      Parameters:
      legs - The legs
    • feet

      ItemStack feet()
      Gets the feet.
      Returns:
      The feet, if available
    • setFeet

      void setFeet(ItemStackLike feet)
      Sets the feet.
      Parameters:
      feet - The feet
    • itemInHand

      default ItemStack itemInHand(Supplier<? extends HandType> handType)
      Gets the equipped item in hand.
      Parameters:
      handType - The hand type to retrieve from
      Returns:
      The item in hand, if available
    • itemInHand

      ItemStack itemInHand(HandType handType)
      Gets the equipped item in hand.
      Parameters:
      handType - The hand type to retrieve from
      Returns:
      The item in hand, if available
    • setItemInHand

      default void setItemInHand(Supplier<? extends HandType> handType, ItemStackLike itemInHand)
      Sets the equipped item in hand.
      Parameters:
      handType - The hand type to set to
      itemInHand - The item in hand
    • setItemInHand

      void setItemInHand(HandType handType, ItemStackLike itemInHand)
      Sets the equipped item in hand.
      Parameters:
      handType - The hand type to set to
      itemInHand - The item in hand