Class CraftingGridBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
com.refinedmods.refinedstorage.common.grid.AbstractGridBlockEntity
com.refinedmods.refinedstorage.common.grid.CraftingGridBlockEntity
- All Implemented Interfaces:
PreviewProvider
,ConfigurationCardTarget
,Grid
,NetworkItemTargetBlockEntity
,CraftingGrid
,BlockEntityWithDrops
,ExtendedMenuProvider<GridData>
,NetworkNodeExtendedMenuProvider<GridData>
,NetworkNodeMenuProvider
,PlayerAwareBlockEntity
,net.minecraft.world.inventory.MenuConstructor
,net.minecraft.world.MenuProvider
,net.minecraft.world.Nameable
public class CraftingGridBlockEntity
extends AbstractGridBlockEntity
implements BlockEntityWithDrops, NetworkNodeExtendedMenuProvider<GridData>, CraftingGrid
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity
ticker
Fields inherited from class com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity
containers, mainNetworkNode
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
-
Constructor Summary
ConstructorDescriptionCraftingGridBlockEntity
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptQuickCraft
(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack craftedStack) boolean
clearMatrix
(net.minecraft.world.entity.player.Player player, boolean toPlayerInventory) createMenu
(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) net.minecraft.world.inventory.ResultContainer
final net.minecraft.core.NonNullList
<net.minecraft.world.item.ItemStack> getDrops()
net.minecraft.network.codec.StreamEncoder
<net.minecraft.network.RegistryFriendlyByteBuf, GridData> net.minecraft.network.chat.Component
getName()
net.minecraft.core.NonNullList
<net.minecraft.world.item.ItemStack> getRemainingItems
(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.CraftingInput input) void
loadAdditional
(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) void
saveAdditional
(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) void
setLevel
(net.minecraft.world.level.Level level) startExtractTransaction
(net.minecraft.world.entity.player.Player player, boolean directCommit) void
transferRecipe
(net.minecraft.world.entity.player.Player player, List<List<ItemResource>> recipe) Methods inherited from class com.refinedmods.refinedstorage.common.grid.AbstractGridBlockEntity
addWatcher, createMainContainer, createOperations, doesBlockStateChangeWarrantNetworkNodeUpdate, getAutocraftableResources, getItemStorage, getPreview, getResources, isGridActive, removeWatcher, startTask
Methods inherited from class com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity
activenessChanged, applyImplicitComponents, calculateActive, collectImplicitComponents, doWork, getCustomName, getDisplayName, getFakePlayer, getNetworkForItem, getRedstoneMode, hasRedstoneMode, initialize, initialize, isPlacedBy, overrideName, readConfiguration, setBlockState, setCustomName, setPlacedBy, setRedstoneMode, updateActiveness, writeConfiguration
Methods inherited from class com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity
clearRemoved, containerInitialized, createContainerProvider, getContainerProvider, setRemoved
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setChanged, setChanged, setComponents, triggerEvent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.refinedmods.refinedstorage.common.api.configurationcard.ConfigurationCardTarget
addUpgrade, getUpgrades
Methods inherited from interface com.refinedmods.refinedstorage.common.api.grid.Grid
addWatcher, createOperations, getAutocraftableResources, getItemStorage, getResources, isGridActive, removeWatcher
Methods inherited from interface net.minecraft.world.MenuProvider
getDisplayName
Methods inherited from interface net.minecraft.world.Nameable
hasCustomName
Methods inherited from interface com.refinedmods.refinedstorage.common.support.containermenu.NetworkNodeMenuProvider
canOpen, getContainerProvider
Methods inherited from interface com.refinedmods.refinedstorage.api.autocrafting.preview.PreviewProvider
getPreview, startTask
-
Constructor Details
-
CraftingGridBlockEntity
public CraftingGridBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getCraftingMatrix
- Specified by:
getCraftingMatrix
in interfaceCraftingGrid
-
getCraftingResult
public net.minecraft.world.inventory.ResultContainer getCraftingResult()- Specified by:
getCraftingResult
in interfaceCraftingGrid
-
getRemainingItems
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.CraftingInput input) - Specified by:
getRemainingItems
in interfaceCraftingGrid
-
startExtractTransaction
public ExtractTransaction startExtractTransaction(net.minecraft.world.entity.player.Player player, boolean directCommit) - Specified by:
startExtractTransaction
in interfaceCraftingGrid
-
clearMatrix
public boolean clearMatrix(net.minecraft.world.entity.player.Player player, boolean toPlayerInventory) - Specified by:
clearMatrix
in interfaceCraftingGrid
-
transferRecipe
public void transferRecipe(net.minecraft.world.entity.player.Player player, List<List<ItemResource>> recipe) - Specified by:
transferRecipe
in interfaceCraftingGrid
-
acceptQuickCraft
public void acceptQuickCraft(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack craftedStack) - Specified by:
acceptQuickCraft
in interfaceCraftingGrid
-
getMenuData
- Specified by:
getMenuData
in interfaceExtendedMenuProvider<GridData>
-
getMenuCodec
public net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf,GridData> getMenuCodec()- Specified by:
getMenuCodec
in interfaceExtendedMenuProvider<GridData>
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getName
in interfacenet.minecraft.world.Nameable
-
createMenu
@Nullable public AbstractGridContainerMenu createMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) - Specified by:
createMenu
in interfacenet.minecraft.world.inventory.MenuConstructor
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) - Overrides:
saveAdditional
in classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
-
loadAdditional
public void loadAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider) - Overrides:
loadAdditional
in classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
-
setLevel
public void setLevel(net.minecraft.world.level.Level level) - Overrides:
setLevel
in classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.grid.GridNetworkNode>
-
getDrops
public final net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getDrops()- Specified by:
getDrops
in interfaceBlockEntityWithDrops
-