net.minecraft.world.level.block.entity

public class CrafterBlockEntity

extends RandomizableContainerBlockEntity implements CraftingContainer

All mapped superinterfaces:

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

dpx
net.minecraft.world.level.block.entity.CrafterBlockEntity
net.minecraft.class_8887
net.minecraft.block.entity.CrafterBlockEntity
net.minecraft.src.C_301918_
net.minecraft.world.level.block.entity.CrafterBlockEntity

Field summary

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

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected Component
k()
getDefaultName()
method_17823()
getContainerName()
m_6820_()
protected AbstractContainerMenu
a(int arg0, cmy arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
createScreenHandler(int arg0, PlayerInventory arg1)
m_6555_(int p_309858_, C_1140_ arg1)
public void
a(int arg0, boolean arg1)
setSlotState(int arg0, boolean arg1)
method_54480(int arg0, boolean arg1)
setSlotEnabled(int slot, boolean enabled)
m_306488_(int p_310331_, boolean arg1)
public boolean
c(int arg0)
isSlotDisabled(int arg0)
method_54483(int arg0)
isSlotDisabled(int slot)
m_307238_(int arg0)
public boolean
b(int arg0, cur arg1)
canPlaceItem(int arg0, ItemStack arg1)
method_5437(int arg0, class_1799 arg1)
isValid(int arg0, ItemStack arg1)
m_7013_(int p_312777_, C_1391_ arg1)
private boolean
a(int arg0, cur 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)
m_306964_(int p_309554_, C_1391_ p_312872_, int arg2)
protected void
a(us arg0, jk$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
m_318667_(C_4917_ p_328741_, C_213466_$C_254607_ arg1)
protected void
b(us arg0, jk$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
m_183515_(C_4917_ p_330681_, C_213466_$C_254607_ arg1)
public int
b()
getContainerSize()
method_5439()
size()
m_6643_()
public boolean
c()
isEmpty()
method_5442()
isEmpty()
m_7983_()
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getStack(int arg0)
m_8020_(int arg0)
public void
a(int arg0, cur arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setStack(int arg0, ItemStack arg1)
m_6836_(int p_311521_, C_1391_ arg1)
public boolean
a(cmz arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity arg0)
m_6542_(C_1141_ arg0)
public NonNullList<ItemStack>
j()
getItems()
method_11282()
getHeldStacks()
m_58617_()
protected void
a(jr<cur> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
setHeldStacks(DefaultedList<ItemStack> arg0)
m_58609_(C_4702_<C_1391_> arg0)
public int
f()
getWidth()
method_17398()
getWidth()
m_39347_()
public int
g()
getHeight()
method_17397()
getHeight()
m_39346_()
public void
a(cnd arg0)
fillStackedContents(StackedContents arg0)
method_7683(class_1662 arg0)
provideRecipeInputs(RecipeMatcher arg0)
m_5809_(C_1145_ arg0)
private void
c(us arg0)
addDisabledSlots(CompoundTag arg0)
method_54486(class_2487 arg0)
putDisabledSlots(NbtCompound nbt)
m_306746_(C_4917_ arg0)
private void
d(us arg0)
addTriggered(CompoundTag arg0)
method_54487(class_2487 arg0)
putTriggered(NbtCompound nbt)
m_306781_(C_4917_ arg0)
public void
a(boolean arg0)
setTriggered(boolean arg0)
method_54482(boolean arg0)
setTriggered(boolean triggered)
m_305342_(boolean arg0)
public boolean
l()
isTriggered()
method_54488()
isTriggered()
m_307236_()
public static void
a(dca arg0, iz arg1, dse arg2, dpx 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)
m_307890_(C_1596_ p_311764_, C_4675_ p_309568_, C_2064_ p_311393_, C_301918_ p_313070_)
public void
d(int arg0)
setCraftingTicksRemaining(int arg0)
method_54484(int arg0)
setCraftingTicksRemaining(int craftingTicksRemaining)
m_305296_(int arg0)
public int
u()
getRedstoneSignal()
method_54489()
getComparatorOutput()
m_304952_()
private boolean
e(int arg0)
slotCanBeDisabled(int arg0)
method_54485(int arg0)
canToggleSlot(int slot)
m_305899_(int arg0)