Class SlotFixedItemInv
java.lang.Object
net.minecraft.screen.slot.Slot
alexiil.mc.lib.attributes.item.compat.SlotFixedItemInv
- All Implemented Interfaces:
 Convertible
- 
Field Summary
FieldsFields inherited from class net.minecraft.screen.slot.Slot
id, inventory, x, y - 
Constructor Summary
ConstructorsConstructorDescriptionSlotFixedItemInv(net.minecraft.screen.ScreenHandler container, FixedItemInv inv, boolean server, int slotIndex, int x, int y) - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanInsert(net.minecraft.item.ItemStack stack)<T> TAttempts to provide a variant of this in the given class form.intgetMaxItemCount(net.minecraft.item.ItemStack stack)voidsetStack(net.minecraft.item.ItemStack stack)Methods inherited from class net.minecraft.screen.slot.Slot
canTakeItems, canTakePartial, getBackgroundSprite, getIndex, getMaxItemCount, getStack, hasStack, insertStack, insertStack, isEnabled, markDirty, onCrafted, onCrafted, onQuickTransfer, onTake, onTakeItem, takeStack, takeStackRange, tryTakeStackRange 
- 
Field Details
- 
inv
 - 
slotIndex
public final int slotIndex - 
server
public final boolean server 
 - 
 - 
Constructor Details
- 
SlotFixedItemInv
public SlotFixedItemInv(net.minecraft.screen.ScreenHandler container, FixedItemInv inv, boolean server, int slotIndex, int x, int y) 
 - 
 - 
Method Details
- 
canInsert
public boolean canInsert(net.minecraft.item.ItemStack stack)- Overrides:
 canInsertin classnet.minecraft.screen.slot.Slot
 - 
getMaxItemCount
public int getMaxItemCount(net.minecraft.item.ItemStack stack)- Overrides:
 getMaxItemCountin classnet.minecraft.screen.slot.Slot
 - 
setStack
public void setStack(net.minecraft.item.ItemStack stack)- Overrides:
 setStackin classnet.minecraft.screen.slot.Slot
 - 
convertTo
Description copied from interface:ConvertibleAttempts to provide a variant of this in the given class form. This does not have to return "this" object if this is already an instance of the given class.Note: In order to be typesafe (and prevent crashes) it is recommended that you return
Class.cast(Object)with the object you wish to return rather than just blindly cast to "T".- Specified by:
 convertToin interfaceConvertible
 
 -