public class SingleRecipeOutputSlot
extends net.minecraft.inventory.container.Slot
| Constructor and Description |
|---|
SingleRecipeOutputSlot(net.minecraft.inventory.IInventory inventory,
int index,
int xPosition,
int yPosition,
net.minecraft.util.IWorldPosCallable worldPosCallable,
net.minecraft.inventory.container.Slot inputSlot,
java.util.function.Consumer<java.lang.Void> onCraft) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isItemValid(net.minecraft.item.ItemStack stack) |
net.minecraft.item.ItemStack |
onTake(net.minecraft.entity.player.PlayerEntity thePlayer,
net.minecraft.item.ItemStack stack) |
canTakeStack, decrStackSize, getBackground, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getStack, isEnabled, isSameInventory, onCrafting, onCrafting, onSlotChange, onSlotChanged, onSwapCraft, putStack, setBackgroundpublic SingleRecipeOutputSlot(net.minecraft.inventory.IInventory inventory,
int index,
int xPosition,
int yPosition,
net.minecraft.util.IWorldPosCallable worldPosCallable,
net.minecraft.inventory.container.Slot inputSlot,
java.util.function.Consumer<java.lang.Void> onCraft)
public boolean isItemValid(@Nonnull
net.minecraft.item.ItemStack stack)
isItemValid in class net.minecraft.inventory.container.Slot@Nonnull
@ParametersAreNonnullByDefault
public net.minecraft.item.ItemStack onTake(net.minecraft.entity.player.PlayerEntity thePlayer,
net.minecraft.item.ItemStack stack)
onTake in class net.minecraft.inventory.container.Slot