public class SlotRuled
extends net.minecraft.inventory.Slot
| 构造器和说明 |
|---|
SlotRuled(net.minecraft.inventory.IInventory inventoryIn,
int index,
int xPosition,
int yPosition,
InventoryRule rule) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canTakeStack(net.minecraft.entity.player.EntityPlayer playerIn) |
int |
getSlotStackLimit() |
boolean |
isItemValid(net.minecraft.item.ItemStack stack) |
static java.util.List<SlotRuled> |
of(InventoryElement element) |
protected void |
onCrafting(net.minecraft.item.ItemStack stack) |
protected void |
onCrafting(net.minecraft.item.ItemStack stack,
int amount) |
void |
onSlotChange(net.minecraft.item.ItemStack p_75220_1_,
net.minecraft.item.ItemStack p_75220_2_) |
void |
onSlotChanged() |
public SlotRuled(net.minecraft.inventory.IInventory inventoryIn,
int index,
int xPosition,
int yPosition,
InventoryRule rule)
public static java.util.List<SlotRuled> of(InventoryElement element)
public void onSlotChanged()
onSlotChanged 在类中 net.minecraft.inventory.Slotprotected void onCrafting(net.minecraft.item.ItemStack stack)
onCrafting 在类中 net.minecraft.inventory.Slotprotected void onCrafting(net.minecraft.item.ItemStack stack,
int amount)
onCrafting 在类中 net.minecraft.inventory.Slotpublic void onSlotChange(net.minecraft.item.ItemStack p_75220_1_,
net.minecraft.item.ItemStack p_75220_2_)
onSlotChange 在类中 net.minecraft.inventory.Slotpublic boolean canTakeStack(net.minecraft.entity.player.EntityPlayer playerIn)
canTakeStack 在类中 net.minecraft.inventory.Slotpublic boolean isItemValid(net.minecraft.item.ItemStack stack)
isItemValid 在类中 net.minecraft.inventory.Slotpublic int getSlotStackLimit()
getSlotStackLimit 在类中 net.minecraft.inventory.Slot