java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemEquippable

public class ItemEquippable extends Object
  • Constructor Details

  • Method Details

    • read

      public static ItemEquippable read(PacketWrapper<?> wrapper)
    • write

      public static void write(PacketWrapper<?> wrapper, ItemEquippable equippable)
    • getSlot

      public EquipmentSlot getSlot()
    • setSlot

      public void setSlot(EquipmentSlot slot)
    • getEquipSound

      public Sound getEquipSound()
    • setEquipSound

      public void setEquipSound(Sound equipSound)
    • getAssetId

      @Nullable public @Nullable ResourceLocation getAssetId()
    • setAssetId

      public void setAssetId(@Nullable @Nullable ResourceLocation assetId)
    • getCameraOverlay

      @Nullable public @Nullable ResourceLocation getCameraOverlay()
    • setCameraOverlay

      public void setCameraOverlay(@Nullable @Nullable ResourceLocation cameraOverlay)
    • getAllowedEntities

      @Nullable public @Nullable MappedEntitySet<EntityType> getAllowedEntities()
    • setAllowedEntities

      public void setAllowedEntities(@Nullable @Nullable MappedEntitySet<EntityType> allowedEntities)
    • isDispensable

      public boolean isDispensable()
    • setDispensable

      public void setDispensable(boolean dispensable)
    • isSwappable

      public boolean isSwappable()
    • setSwappable

      public void setSwappable(boolean swappable)
    • isDamageOnHurt

      public boolean isDamageOnHurt()
    • setDamageOnHurt

      public void setDamageOnHurt(boolean damageOnHurt)
    • getModel

      @Deprecated @Nullable public @Nullable ResourceLocation getModel()
      Deprecated.
    • setModel

      @Deprecated public void setModel(@Nullable @Nullable ResourceLocation assetId)
      Deprecated.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object