public abstract class SingleRecipeContainer<T extends net.minecraft.item.crafting.SingleItemRecipe>
extends net.minecraft.inventory.container.Container
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.inventory.IInventory |
inputInventory |
| Constructor and Description |
|---|
SingleRecipeContainer(net.minecraft.inventory.container.ContainerType<? extends SingleRecipeContainer<?>> containerType,
int windowId,
net.minecraft.entity.player.PlayerInventory playerInventoryIn,
net.minecraft.item.crafting.IRecipeType<T> recipeType) |
SingleRecipeContainer(net.minecraft.inventory.container.ContainerType<? extends SingleRecipeContainer<?>> containerType,
int windowId,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.util.IWorldPosCallable worldPosCallable,
net.minecraft.item.crafting.IRecipeType<T> recipeType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(net.minecraft.entity.player.PlayerEntity player) |
boolean |
canMergeSlot(net.minecraft.item.ItemStack stack,
net.minecraft.inventory.container.Slot slotIn) |
boolean |
enchantItem(net.minecraft.entity.player.PlayerEntity player,
int id) |
protected abstract net.minecraft.block.Block |
getBlock() |
java.util.List<T> |
getRecipeList() |
int |
getRecipeListSize() |
int |
getSelectedRecipe() |
boolean |
hasItemsInInputSlot() |
void |
onContainerClosed(net.minecraft.entity.player.PlayerEntity player) |
void |
onCraftMatrixChanged(net.minecraft.inventory.IInventory inventory) |
void |
setInventoryUpdateListener(java.lang.Runnable listenerIn) |
net.minecraft.item.ItemStack |
transferStackInSlot(net.minecraft.entity.player.PlayerEntity player,
int index) |
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, clearContainer, computeStackSize, detectAndSendChanges, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBarpublic SingleRecipeContainer(net.minecraft.inventory.container.ContainerType<? extends SingleRecipeContainer<?>> containerType, int windowId, net.minecraft.entity.player.PlayerInventory playerInventoryIn, net.minecraft.item.crafting.IRecipeType<T> recipeType)
public SingleRecipeContainer(net.minecraft.inventory.container.ContainerType<? extends SingleRecipeContainer<?>> containerType, int windowId, net.minecraft.entity.player.PlayerInventory playerInventory, net.minecraft.util.IWorldPosCallable worldPosCallable, net.minecraft.item.crafting.IRecipeType<T> recipeType)
public int getSelectedRecipe()
public java.util.List<T> getRecipeList()
public int getRecipeListSize()
public boolean hasItemsInInputSlot()
public boolean canInteractWith(@Nonnull
net.minecraft.entity.player.PlayerEntity player)
canInteractWith in class net.minecraft.inventory.container.Containerprotected abstract net.minecraft.block.Block getBlock()
public boolean enchantItem(@Nonnull
net.minecraft.entity.player.PlayerEntity player,
int id)
enchantItem in class net.minecraft.inventory.container.Containerpublic void onCraftMatrixChanged(@Nonnull
net.minecraft.inventory.IInventory inventory)
onCraftMatrixChanged in class net.minecraft.inventory.container.Containerpublic void setInventoryUpdateListener(java.lang.Runnable listenerIn)
public boolean canMergeSlot(@Nonnull
net.minecraft.item.ItemStack stack,
net.minecraft.inventory.container.Slot slotIn)
canMergeSlot in class net.minecraft.inventory.container.Container@Nonnull
public net.minecraft.item.ItemStack transferStackInSlot(@Nonnull
net.minecraft.entity.player.PlayerEntity player,
int index)
transferStackInSlot in class net.minecraft.inventory.container.Containerpublic void onContainerClosed(@Nonnull
net.minecraft.entity.player.PlayerEntity player)
onContainerClosed in class net.minecraft.inventory.container.Container