public class InputSlotCrafter<C extends net.minecraft.inventory.container.Container> extends java.lang.Object implements RecipeGridAligner<java.lang.Integer>, ContainerContext
| Modifier and Type | Class and Description |
|---|---|
static class |
InputSlotCrafter.NotEnoughMaterialsException |
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.inventory.container.Container |
container |
protected ContainerInfo |
containerInfo |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptAlignedInput(java.util.Iterator<java.lang.Integer> iterator_1,
StackAccessor gridSlot,
int craftsAmount) |
protected void |
fillInputSlot(StackAccessor slot,
net.minecraft.item.ItemStack toBeTakenStack) |
protected void |
fillInputSlots(RecipeFinder recipeFinder,
net.minecraft.util.NonNullList<net.minecraft.item.crafting.Ingredient> ingredients,
boolean hasShift) |
protected int |
getAmountToFill(boolean hasShift,
int recipeCrafts,
boolean boolean_2) |
net.minecraft.inventory.container.Container |
getContainer() |
ContainerInfo |
getContainerInfo() |
net.minecraft.entity.player.PlayerEntity |
getPlayerEntity() |
int |
method_7371(net.minecraft.item.ItemStack itemStack) |
protected void |
returnInputs() |
static <C extends net.minecraft.inventory.container.Container> |
start(net.minecraft.util.ResourceLocation category,
net.minecraft.inventory.container.Container craftingContainer_1,
net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.util.NonNullList<java.util.List<net.minecraft.item.ItemStack>> map,
boolean hasShift) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalignRecipeToGridgetStackprotected net.minecraft.inventory.container.Container container
protected ContainerInfo containerInfo
public static <C extends net.minecraft.inventory.container.Container> void start(net.minecraft.util.ResourceLocation category,
net.minecraft.inventory.container.Container craftingContainer_1,
net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.util.NonNullList<java.util.List<net.minecraft.item.ItemStack>> map,
boolean hasShift)
public void acceptAlignedInput(java.util.Iterator<java.lang.Integer> iterator_1,
StackAccessor gridSlot,
int craftsAmount)
acceptAlignedInput in interface RecipeGridAligner<java.lang.Integer>protected void fillInputSlot(StackAccessor slot, net.minecraft.item.ItemStack toBeTakenStack)
protected void fillInputSlots(RecipeFinder recipeFinder, net.minecraft.util.NonNullList<net.minecraft.item.crafting.Ingredient> ingredients, boolean hasShift)
protected int getAmountToFill(boolean hasShift,
int recipeCrafts,
boolean boolean_2)
protected void returnInputs()
public int method_7371(net.minecraft.item.ItemStack itemStack)
public net.minecraft.inventory.container.Container getContainer()
getContainer in interface ContainerContextpublic net.minecraft.entity.player.PlayerEntity getPlayerEntity()
getPlayerEntity in interface ContainerContextpublic ContainerInfo getContainerInfo()
getContainerInfo in interface ContainerContext