Class ItemEquippable
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemEquippable
-
Constructor Summary
ConstructorDescriptionItemEquippable
(EquipmentSlot slot, Sound equipSound, @Nullable ResourceLocation assetId, @Nullable ResourceLocation cameraOverlay, @Nullable MappedEntitySet<EntityType> allowedEntities, boolean dispensable, boolean swappable, boolean damageOnHurt) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable MappedEntitySet
<EntityType> @Nullable ResourceLocation
@Nullable ResourceLocation
@Nullable ResourceLocation
getModel()
Deprecated.getSlot()
int
hashCode()
boolean
boolean
boolean
static ItemEquippable
read
(PacketWrapper<?> wrapper) void
setAllowedEntities
(@Nullable MappedEntitySet<EntityType> allowedEntities) void
setAssetId
(@Nullable ResourceLocation assetId) void
setCameraOverlay
(@Nullable ResourceLocation cameraOverlay) void
setDamageOnHurt
(boolean damageOnHurt) void
setDispensable
(boolean dispensable) void
setEquipSound
(Sound equipSound) void
setModel
(@Nullable ResourceLocation assetId) Deprecated.void
setSlot
(EquipmentSlot slot) void
setSwappable
(boolean swappable) toString()
static void
write
(PacketWrapper<?> wrapper, ItemEquippable equippable)
-
Constructor Details
-
ItemEquippable
public ItemEquippable(EquipmentSlot slot, Sound equipSound, @Nullable @Nullable ResourceLocation assetId, @Nullable @Nullable ResourceLocation cameraOverlay, @Nullable @Nullable MappedEntitySet<EntityType> allowedEntities, boolean dispensable, boolean swappable, boolean damageOnHurt)
-
-
Method Details
-
read
-
write
-
getSlot
-
setSlot
-
getEquipSound
-
setEquipSound
-
getAssetId
-
setAssetId
-
getCameraOverlay
-
setCameraOverlay
-
getAllowedEntities
-
setAllowedEntities
-
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. -
setModel
Deprecated. -
equals
-
hashCode
public int hashCode() -
toString
-