Class EntityHandsInvWrapper
java.lang.Object
net.neoforged.neoforge.items.wrapper.EntityEquipmentInvWrapper
net.neoforged.neoforge.items.wrapper.EntityHandsInvWrapper
- All Implemented Interfaces:
IItemHandler,IItemHandlerModifiable
@Deprecated(since="1.21.9",
forRemoval=true)
public class EntityHandsInvWrapper
extends EntityEquipmentInvWrapper
Deprecated, for removal: This API element is subject to removal in a future version.
Exposes the hands inventory of an
LivingEntity as an IItemHandler using LivingEntity.getItemBySlot(EquipmentSlot) and
LivingEntity.setItemSlot(EquipmentSlot, ItemStack).-
Field Summary
Fields inherited from class net.neoforged.neoforge.items.wrapper.EntityEquipmentInvWrapper
entity, slots -
Constructor Summary
ConstructorsConstructorDescriptionEntityHandsInvWrapper(LivingEntity entity) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Methods inherited from class net.neoforged.neoforge.items.wrapper.EntityEquipmentInvWrapper
extractItem, getSlotLimit, getSlots, getStackInSlot, getStackLimit, insertItem, isItemValid, setStackInSlot, validateSlotIndex
-
Constructor Details
-
EntityHandsInvWrapper
Deprecated, for removal: This API element is subject to removal in a future version.
-
LivingEntityEquipmentWrapperinstead, with theEquipmentSlot.Type.HANDequipment type.