net.minecraft.world.level.block.entity

public class CrafterBlockEntity

extends RandomizableContainerBlockEntity implements CraftingContainer

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable, RandomizableContainer, CraftingContainer, StackedContentsCompatible

dvl
net.minecraft.world.level.block.entity.CrafterBlockEntity
net.minecraft.class_8887
net.minecraft.block.entity.CrafterBlockEntity
net.minecraft.world.level.block.entity.CrafterBlockEntity

Field summary

Modifier and TypeField
public static final int
d
CONTAINER_WIDTH
field_46809
GRID_WIDTH
public static final int
e
CONTAINER_HEIGHT
field_46810
GRID_HEIGHT
public static final int
f
CONTAINER_SIZE
field_46811
GRID_SIZE
public static final int
g
SLOT_DISABLED
field_46812
SLOT_DISABLED
public static final int
h
SLOT_ENABLED
field_46813
SLOT_ENABLED
public static final int
i
DATA_TRIGGERED
field_46814
TRIGGERED_PROPERTY
public static final int
j
NUM_DATA
field_46815
PROPERTIES_COUNT
private NonNullList<ItemStack>
n
items
field_46817
inputStacks
private int
r
craftingTicksRemaining
field_46818
craftingTicksRemaining
protected final ContainerData
k
containerData
field_46816
propertyDelegate

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected Component
j()
getDefaultName()
method_17823()
getContainerName()
protected AbstractContainerMenu
a(int arg0, cpw arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createScreenHandler(int arg0, PlayerInventory arg1)
public void
a(int arg0, boolean arg1)
setSlotState(int arg0, boolean arg1)
method_54480(int arg0, boolean arg1)
setSlotEnabled(int slot, boolean enabled)
public boolean
c(int arg0)
isSlotDisabled(int arg0)
method_54483(int arg0)
isSlotDisabled(int slot)
public boolean
b(int arg0, cxp arg1)
canPlaceItem(int arg0, ItemStack arg1)
method_5437(int arg0, class_1799 arg1)
isValid(int arg0, ItemStack arg1)
private boolean
a(int arg0, cxp arg1, int arg2)
smallerStackExist(int arg0, ItemStack arg1, int arg2)
method_54479(int arg0, class_1799 arg1, int arg2)
betterSlotExists(int count, ItemStack stack, int slot)
protected void
a(ux arg0, js$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
protected void
b(ux arg0, js$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
public int
b()
getContainerSize()
method_5439()
size()
public boolean
c()
isEmpty()
method_5442()
isEmpty()
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getStack(int arg0)
public void
a(int arg0, cxp arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setStack(int arg0, ItemStack arg1)
public boolean
a(cpx arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity arg0)
public NonNullList<ItemStack>
f()
getItems()
method_11282()
getHeldStacks()
protected void
a(jz<cxp> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
setHeldStacks(DefaultedList<ItemStack> arg0)
public int
az_()
getWidth()
method_17398()
getWidth()
public int
g()
getHeight()
method_17397()
getHeight()
public void
fillStackedContents(cqc arg0)
fillStackedContents(StackedItemContents arg0)
method_7683(class_9875 arg0)
provideRecipeInputs(RecipeFinder arg0)
private void
c(ux arg0)
addDisabledSlots(CompoundTag arg0)
method_54486(class_2487 arg0)
putDisabledSlots(NbtCompound nbt)
private void
d(ux arg0)
addTriggered(CompoundTag arg0)
method_54487(class_2487 arg0)
putTriggered(NbtCompound nbt)
public void
a(boolean arg0)
setTriggered(boolean arg0)
method_54482(boolean arg0)
setTriggered(boolean triggered)
public boolean
k()
isTriggered()
method_54488()
isTriggered()
public static void
a(dhi arg0, jh arg1, dxv arg2, dvl arg3)
serverTick(Level arg0, BlockPos arg1, BlockState arg2, CrafterBlockEntity arg3)
method_54481(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_8887 arg3)
tickCrafting(World world, BlockPos pos, BlockState state, CrafterBlockEntity blockEntity)
public void
d(int arg0)
setCraftingTicksRemaining(int arg0)
method_54484(int arg0)
setCraftingTicksRemaining(int craftingTicksRemaining)
public int
t()
getRedstoneSignal()
method_54489()
getComparatorOutput()
private boolean
e(int arg0)
slotCanBeDisabled(int arg0)
method_54485(int arg0)
canToggleSlot(int slot)