Class CrafterBlockEntity
- All Implemented Interfaces:
 Iterable<ItemStack>,Inventory,LootableInventory,RecipeInputInventory,RecipeInputProvider,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
- Mappings:
 Namespace Name named net/minecraft/block/entity/CrafterBlockEntityintermediary net/minecraft/class_8887official ebo
- 
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.inventory.Inventory
Inventory.Iterator - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate static final intstatic final intstatic final intstatic final intprivate DefaultedList<ItemStack> static final intprotected final PropertyDelegatestatic final intstatic final intstatic final intFields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
lootTable, lootTableSeedFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, worldFields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGEFields inherited from interface net.minecraft.inventory.LootableInventory
LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate booleanbetterSlotExists(int count, ItemStack stack, int slot) booleancanPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.private booleancanToggleSlot(int slot) protected ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory) intprotected TextintReturns the height of the recipe grid.Returns the stacks held by the inventory.getStack(int slot) Returns the stack currently stored atslot.intgetWidth()Returns the width of the recipe grid.booleanisEmpty()Returns whether the inventory consists entirely of empty item stacks.booleanisSlotDisabled(int slot) booleanbooleanReturns whetherstackis valid for theslot.voidprovideRecipeInputs(RecipeFinder finder) private voidputDisabledSlots(WriteView view) private voidputTriggered(WriteView view) protected voidReads data fromnbt.voidsetCraftingTicksRemaining(int craftingTicksRemaining) protected voidsetHeldStacks(DefaultedList<ItemStack> inventory) voidsetSlotEnabled(int slot, boolean enabled) voidSets the stack stored atslottostack.voidsetTriggered(boolean triggered) intsize()Returns the size of the inventory.static voidtickCrafting(World world, BlockPos pos, BlockState state, CrafterBlockEntity blockEntity) protected voidWrites data tonbt.Methods inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
addComponents, checkUnlocked, createMenu, getLootTable, getLootTableSeed, readComponents, removeFromCopiedStackData, removeStack, removeStack, setLootTable, setLootTableSeedMethods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, clear, getCustomName, getDisplayName, getNameMethods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createComponentlessNbt, createComponentMap, createFromNbt, createNbt, createNbtWithIdentifyingData, getCachedState, getComponents, getNameForReport, getPos, getReporterContext, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessData, readComponents, readComponents, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeComponentlessData, writeDataWithId, writeDataWithoutId, writeFullData, writeIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, iterator, markDirty, onClose, onOpen, removeStack, removeStackMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.inventory.LootableInventory
generateLoot, getPos, getWorld, readLootTable, setLootTable, writeLootTableMethods inherited from interface net.minecraft.util.Nameable
hasCustomNameMethods inherited from interface net.minecraft.inventory.RecipeInputInventory
createPositionedRecipeInput, createRecipeInput 
- 
Field Details
- 
GRID_WIDTH
public static final int GRID_WIDTH- See Also:
 - Mappings:
 Namespace Name Mixin selector named GRID_WIDTHLnet/minecraft/block/entity/CrafterBlockEntity;GRID_WIDTH:Iintermediary field_46809Lnet/minecraft/class_8887;field_46809:Iofficial dLebo;d:I
 - 
GRID_HEIGHT
public static final int GRID_HEIGHT- See Also:
 - Mappings:
 Namespace Name Mixin selector named GRID_HEIGHTLnet/minecraft/block/entity/CrafterBlockEntity;GRID_HEIGHT:Iintermediary field_46810Lnet/minecraft/class_8887;field_46810:Iofficial eLebo;e:I
 - 
GRID_SIZE
public static final int GRID_SIZE- See Also:
 - Mappings:
 Namespace Name Mixin selector named GRID_SIZELnet/minecraft/block/entity/CrafterBlockEntity;GRID_SIZE:Iintermediary field_46811Lnet/minecraft/class_8887;field_46811:Iofficial fLebo;f:I
 - 
SLOT_DISABLED
public static final int SLOT_DISABLED- See Also:
 - Mappings:
 Namespace Name Mixin selector named SLOT_DISABLEDLnet/minecraft/block/entity/CrafterBlockEntity;SLOT_DISABLED:Iintermediary field_46812Lnet/minecraft/class_8887;field_46812:Iofficial gLebo;g:I
 - 
SLOT_ENABLED
public static final int SLOT_ENABLED- See Also:
 - Mappings:
 Namespace Name Mixin selector named SLOT_ENABLEDLnet/minecraft/block/entity/CrafterBlockEntity;SLOT_ENABLED:Iintermediary field_46813Lnet/minecraft/class_8887;field_46813:Iofficial hLebo;h:I
 - 
TRIGGERED_PROPERTY
public static final int TRIGGERED_PROPERTY- See Also:
 - Mappings:
 Namespace Name Mixin selector named TRIGGERED_PROPERTYLnet/minecraft/block/entity/CrafterBlockEntity;TRIGGERED_PROPERTY:Iintermediary field_46814Lnet/minecraft/class_8887;field_46814:Iofficial iLebo;i:I
 - 
PROPERTIES_COUNT
public static final int PROPERTIES_COUNT- See Also:
 - Mappings:
 Namespace Name Mixin selector named PROPERTIES_COUNTLnet/minecraft/block/entity/CrafterBlockEntity;PROPERTIES_COUNT:Iintermediary field_46815Lnet/minecraft/class_8887;field_46815:Iofficial jLebo;j:I
 - 
DEFAULT_CRAFTING_TICKS_REMAINING
private static final int DEFAULT_CRAFTING_TICKS_REMAINING- See Also:
 - Mappings:
 Namespace Name Mixin selector named DEFAULT_CRAFTING_TICKS_REMAININGLnet/minecraft/block/entity/CrafterBlockEntity;DEFAULT_CRAFTING_TICKS_REMAINING:Iintermediary field_57776Lnet/minecraft/class_8887;field_57776:Iofficial qLebo;q:I
 - 
DEFAULT_TRIGGERED
private static final int DEFAULT_TRIGGERED- See Also:
 - Mappings:
 Namespace Name Mixin selector named DEFAULT_TRIGGEREDLnet/minecraft/block/entity/CrafterBlockEntity;DEFAULT_TRIGGERED:Iintermediary field_57777Lnet/minecraft/class_8887;field_57777:Iofficial rLebo;r:I
 - 
inputStacks
- Mappings:
 Namespace Name Mixin selector named inputStacksLnet/minecraft/block/entity/CrafterBlockEntity;inputStacks:Lnet/minecraft/util/collection/DefaultedList;intermediary field_46817Lnet/minecraft/class_8887;field_46817:Lnet/minecraft/class_2371;official sLebo;s:Lju;
 - 
craftingTicksRemaining
private int craftingTicksRemaining- Mappings:
 Namespace Name Mixin selector named craftingTicksRemainingLnet/minecraft/block/entity/CrafterBlockEntity;craftingTicksRemaining:Iintermediary field_46818Lnet/minecraft/class_8887;field_46818:Iofficial tLebo;t:I
 - 
propertyDelegate
- Mappings:
 Namespace Name Mixin selector named propertyDelegateLnet/minecraft/block/entity/CrafterBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;intermediary field_46816Lnet/minecraft/class_8887;field_46816:Lnet/minecraft/class_3913;official kLebo;k:Lcyy;
 
 - 
 - 
Constructor Details
- 
CrafterBlockEntity
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/CrafterBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_8887;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Lebo;<init>(Ljb;Leeb;)V
 
 - 
 - 
Method Details
- 
getContainerName
- Specified by:
 getContainerNamein classLockableContainerBlockEntity- Mappings:
 Namespace Name Mixin selector named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;official jLeas;j()Lxo;
 - 
createScreenHandler
- Specified by:
 createScreenHandlerin classLockableContainerBlockEntity- Mappings:
 Namespace Name Mixin selector named createScreenHandlerLnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;intermediary method_5465Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;official aLeas;a(ILcus;)Lcym;
 - 
setSlotEnabled
public void setSlotEnabled(int slot, boolean enabled) - Mappings:
 Namespace Name Mixin selector named setSlotEnabledLnet/minecraft/block/entity/CrafterBlockEntity;setSlotEnabled(IZ)Vintermediary method_54480Lnet/minecraft/class_8887;method_54480(IZ)Vofficial aLebo;a(IZ)V
 - 
isSlotDisabled
public boolean isSlotDisabled(int slot) - Mappings:
 Namespace Name Mixin selector named isSlotDisabledLnet/minecraft/block/entity/CrafterBlockEntity;isSlotDisabled(I)Zintermediary method_54483Lnet/minecraft/class_8887;method_54483(I)Zofficial cLebo;c(I)Z
 - 
isValid
Returns whetherstackis valid for theslot.Implementations can, for example, use this to check whether the item is in a specific tag. This returns
trueby default.- Specified by:
 isValidin interfaceInventory- Returns:
 - whether 
stackis valid for theslot - Mappings:
 Namespace Name Mixin selector named isValidLnet/minecraft/inventory/Inventory;isValid(ILnet/minecraft/item/ItemStack;)Zintermediary method_5437Lnet/minecraft/class_1263;method_5437(ILnet/minecraft/class_1799;)Zofficial bLbxc;b(ILdcv;)Z
 - 
betterSlotExists
- Mappings:
 Namespace Name Mixin selector named betterSlotExistsLnet/minecraft/block/entity/CrafterBlockEntity;betterSlotExists(ILnet/minecraft/item/ItemStack;I)Zintermediary method_54479Lnet/minecraft/class_8887;method_54479(ILnet/minecraft/class_1799;I)Zofficial aLebo;a(ILdcv;I)Z
 - 
readData
Reads data fromnbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
 readDatain classLockableContainerBlockEntity- See Also:
 - Mappings:
 Namespace Name Mixin selector named readDataLnet/minecraft/block/entity/BlockEntity;readData(Lnet/minecraft/storage/ReadView;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_11368;)Vofficial aLeaz;a(Lfda;)V
 - 
writeData
Writes data tonbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
 writeDatain classLockableContainerBlockEntity- See Also:
 - Mappings:
 Namespace Name Mixin selector named writeDataLnet/minecraft/block/entity/BlockEntity;writeData(Lnet/minecraft/storage/WriteView;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_11372;)Vofficial aLeaz;a(Lfdc;)V
 - 
size
public int size()Returns the size of the inventory.The inventory should support the slot ID from
0tosize() - 1. This should remain constant throughout the inventory's lifetime. - 
isEmpty
public boolean isEmpty()Returns whether the inventory consists entirely of empty item stacks.- Specified by:
 isEmptyin interfaceInventory- Overrides:
 isEmptyin classLootableContainerBlockEntity- Returns:
 - whether the inventory consists entirely of empty item stacks
 - Mappings:
 Namespace Name Mixin selector named isEmptyLnet/minecraft/inventory/Inventory;isEmpty()Zintermediary method_5442Lnet/minecraft/class_1263;method_5442()Zofficial cLbxc;c()Z
 - 
getStack
Returns the stack currently stored atslot.If the slot is empty, or is outside the bounds of this inventory, this returns
ItemStack.EMPTY.- Specified by:
 getStackin interfaceInventory- Overrides:
 getStackin classLootableContainerBlockEntity- Returns:
 - the stack currently stored at 
slot - Mappings:
 Namespace Name Mixin selector named getStackLnet/minecraft/inventory/Inventory;getStack(I)Lnet/minecraft/item/ItemStack;intermediary method_5438Lnet/minecraft/class_1263;method_5438(I)Lnet/minecraft/class_1799;official aLbxc;a(I)Ldcv;
 - 
setStack
Sets the stack stored atslottostack.- Specified by:
 setStackin interfaceInventory- Overrides:
 setStackin classLootableContainerBlockEntity- Mappings:
 Namespace Name Mixin selector named setStackLnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)Vintermediary method_5447Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)Vofficial aLbxc;a(ILdcv;)V
 - 
canPlayerUse
Returns whetherplayercan use this inventory.This is called by
ScreenHandler.canUse(net.minecraft.screen.ScreenHandlerContext, net.minecraft.entity.player.PlayerEntity, net.minecraft.block.Block).- Specified by:
 canPlayerUsein interfaceInventory- Overrides:
 canPlayerUsein classLockableContainerBlockEntity- Returns:
 - whether 
playercan use this inventory - See Also:
 - API Note:
 - Implementations should check the distance between the inventory
 holder and 
player. For convenience, this interface offers two methods used by block entities to implement this check. - Mappings:
 Namespace Name Mixin selector named canPlayerUseLnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_5443Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Zofficial aLbxc;a(Lcut;)Z
 - 
getHeldStacks
Description copied from interface:RecipeInputInventoryReturns the stacks held by the inventory.- Specified by:
 getHeldStacksin interfaceRecipeInputInventory- Specified by:
 getHeldStacksin classLockableContainerBlockEntity- Returns:
 - the stacks held by the inventory
 - Mappings:
 Namespace Name Mixin selector named getHeldStacksLnet/minecraft/block/entity/CrafterBlockEntity;getHeldStacks()Lnet/minecraft/util/collection/DefaultedList;intermediary method_11282Lnet/minecraft/class_8887;method_11282()Lnet/minecraft/class_2371;official method_11282Lebo;method_11282()Lju;
 - 
setHeldStacks
- Specified by:
 setHeldStacksin classLockableContainerBlockEntity- Mappings:
 Namespace Name Mixin selector named setHeldStacksLnet/minecraft/block/entity/LockableContainerBlockEntity;setHeldStacks(Lnet/minecraft/util/collection/DefaultedList;)Vintermediary method_11281Lnet/minecraft/class_2624;method_11281(Lnet/minecraft/class_2371;)Vofficial aLeas;a(Lju;)V
 - 
getWidth
public int getWidth()Returns the width of the recipe grid.- Specified by:
 getWidthin interfaceRecipeInputInventory- Returns:
 - the width of the recipe grid
 - Mappings:
 Namespace Name Mixin selector named getWidthLnet/minecraft/inventory/RecipeInputInventory;getWidth()Iintermediary method_17398Lnet/minecraft/class_8566;method_17398()Iofficial ay_Lcze;ay_()I
 - 
getHeight
public int getHeight()Returns the height of the recipe grid.- Specified by:
 getHeightin interfaceRecipeInputInventory- Returns:
 - the height of the recipe grid
 - Mappings:
 Namespace Name Mixin selector named getHeightLnet/minecraft/inventory/RecipeInputInventory;getHeight()Iintermediary method_17397Lnet/minecraft/class_8566;method_17397()Iofficial gLcze;g()I
 - 
provideRecipeInputs
- Specified by:
 provideRecipeInputsin interfaceRecipeInputProvider- Mappings:
 Namespace Name Mixin selector named provideRecipeInputsLnet/minecraft/recipe/RecipeInputProvider;provideRecipeInputs(Lnet/minecraft/recipe/RecipeFinder;)Vintermediary method_7683Lnet/minecraft/class_1737;method_7683(Lnet/minecraft/class_9875;)Vofficial fillStackedContentsLdap;fillStackedContents(Lcuz;)V
 - 
putDisabledSlots
- Mappings:
 Namespace Name Mixin selector named putDisabledSlotsLnet/minecraft/block/entity/CrafterBlockEntity;putDisabledSlots(Lnet/minecraft/storage/WriteView;)Vintermediary method_54486Lnet/minecraft/class_8887;method_54486(Lnet/minecraft/class_11372;)Vofficial gLebo;g(Lfdc;)V
 - 
putTriggered
- Mappings:
 Namespace Name Mixin selector named putTriggeredLnet/minecraft/block/entity/CrafterBlockEntity;putTriggered(Lnet/minecraft/storage/WriteView;)Vintermediary method_54487Lnet/minecraft/class_8887;method_54487(Lnet/minecraft/class_11372;)Vofficial hLebo;h(Lfdc;)V
 - 
setTriggered
public void setTriggered(boolean triggered) - Mappings:
 Namespace Name Mixin selector named setTriggeredLnet/minecraft/block/entity/CrafterBlockEntity;setTriggered(Z)Vintermediary method_54482Lnet/minecraft/class_8887;method_54482(Z)Vofficial aLebo;a(Z)V
 - 
isTriggered
public boolean isTriggered()- Mappings:
 Namespace Name Mixin selector named isTriggeredLnet/minecraft/block/entity/CrafterBlockEntity;isTriggered()Zintermediary method_54488Lnet/minecraft/class_8887;method_54488()Zofficial kLebo;k()Z
 - 
tickCrafting
public static void tickCrafting(World world, BlockPos pos, BlockState state, CrafterBlockEntity blockEntity) - Mappings:
 Namespace Name Mixin selector named tickCraftingLnet/minecraft/block/entity/CrafterBlockEntity;tickCrafting(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/CrafterBlockEntity;)Vintermediary method_54481Lnet/minecraft/class_8887;method_54481(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_8887;)Vofficial aLebo;a(Ldmu;Ljb;Leeb;Lebo;)V
 - 
setCraftingTicksRemaining
public void setCraftingTicksRemaining(int craftingTicksRemaining) - Mappings:
 Namespace Name Mixin selector named setCraftingTicksRemainingLnet/minecraft/block/entity/CrafterBlockEntity;setCraftingTicksRemaining(I)Vintermediary method_54484Lnet/minecraft/class_8887;method_54484(I)Vofficial dLebo;d(I)V
 - 
getComparatorOutput
public int getComparatorOutput()- Mappings:
 Namespace Name Mixin selector named getComparatorOutputLnet/minecraft/block/entity/CrafterBlockEntity;getComparatorOutput()Iintermediary method_54489Lnet/minecraft/class_8887;method_54489()Iofficial uLebo;u()I
 - 
canToggleSlot
private boolean canToggleSlot(int slot) - Mappings:
 Namespace Name Mixin selector named canToggleSlotLnet/minecraft/block/entity/CrafterBlockEntity;canToggleSlot(I)Zintermediary method_54485Lnet/minecraft/class_8887;method_54485(I)Zofficial eLebo;e(I)Z
 
 -