Class AbstractExporterBlockEntity
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.exporter.ExporterNetworkNode>
com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.exporter.ExporterNetworkNode>
com.refinedmods.refinedstorage.common.support.AbstractCableLikeBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.exporter.ExporterNetworkNode>
com.refinedmods.refinedstorage.common.exporter.AbstractExporterBlockEntity
- All Implemented Interfaces:
ConfigurationCardTarget, NetworkItemTargetBlockEntity, ExtendedMenuProvider<ExporterData>, NetworkNodeExtendedMenuProvider<ExporterData>, NetworkNodeMenuProvider, PlayerAwareBlockEntity, net.minecraft.core.TypedInstance<net.minecraft.world.level.block.entity.BlockEntityType<?>>, net.minecraft.util.debug.DebugValueSource, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraft.world.Nameable
public abstract class AbstractExporterBlockEntity
extends AbstractCableLikeBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.exporter.ExporterNetworkNode>
implements NetworkNodeExtendedMenuProvider<ExporterData>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.debug.DebugValueSource
net.minecraft.util.debug.DebugValueSource.Registration, net.minecraft.util.debug.DebugValueSource.ValueGetter<T> -
Field Summary
Fields inherited from class AbstractCableLikeBlockEntity
connectionsFields inherited from class AbstractBaseNetworkNodeContainerBlockEntity
tickerFields inherited from class AbstractNetworkNodeContainerBlockEntity
containers, mainNetworkNodeFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractExporterBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddUpgrade(net.minecraft.world.item.ItemStack upgradeStack) @Nullable net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) protected booleandoesBlockStateChangeWarrantNetworkNodeUpdate(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState) net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, ExporterData> net.minecraft.network.chat.ComponentgetName()List<net.minecraft.world.item.ItemStack> protected voidinitialize(net.minecraft.server.level.ServerLevel level, net.minecraft.core.Direction direction) voidloadAdditional(net.minecraft.world.level.storage.ValueInput input) voidpreRemoveSideEffects(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) voidreadConfiguration(net.minecraft.world.level.storage.ValueInput input) voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) voidwriteConfiguration(net.minecraft.world.level.storage.ValueOutput output) Methods inherited from class AbstractCableLikeBlockEntity
getConnections, getUpdatePacket, getUpdateTag, setBlockState, updateConnectionsMethods inherited from class AbstractBaseNetworkNodeContainerBlockEntity
activenessChanged, applyImplicitComponents, calculateActive, collectImplicitComponents, createMainContainer, doWork, getCustomName, getDebugNetworkId, getDisplayName, getFakePlayer, getNetworkForItem, getRedstoneMode, hasRedstoneMode, initialize, isPlacedBy, overrideName, setChanged, setCustomName, setLevel, setPlacedBy, setRedstoneMode, updateActiveness, updateDebugNetworkIdMethods inherited from class AbstractNetworkNodeContainerBlockEntity
clearRemoved, containerInitialized, createContainerProvider, getContainerProvider, setRemovedMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, problemPath, registerDebugValues, removeComponentsFromTag, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setChanged, setComponents, triggerEvent, typeHolderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.MenuProvider
getDisplayNameMethods inherited from interface net.minecraft.world.Nameable
getPlainTextName, hasCustomNameMethods inherited from interface NetworkNodeMenuProvider
canOpen, getContainerProviderMethods inherited from interface net.minecraft.core.TypedInstance
is, is, is, is, is, tags
-
Constructor Details
-
AbstractExporterBlockEntity
protected AbstractExporterBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getUpgrades
- Specified by:
getUpgradesin interfaceConfigurationCardTarget
-
addUpgrade
public boolean addUpgrade(net.minecraft.world.item.ItemStack upgradeStack) - Specified by:
addUpgradein interfaceConfigurationCardTarget
-
initialize
protected void initialize(net.minecraft.server.level.ServerLevel level, net.minecraft.core.Direction direction) - Overrides:
initializein classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.exporter.ExporterNetworkNode>
-
saveAdditional
public void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classAbstractCableLikeBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.exporter.ExporterNetworkNode>
-
loadAdditional
public void loadAdditional(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadAdditionalin classAbstractCableLikeBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.exporter.ExporterNetworkNode>
-
writeConfiguration
public void writeConfiguration(net.minecraft.world.level.storage.ValueOutput output) - Specified by:
writeConfigurationin interfaceConfigurationCardTarget- Overrides:
writeConfigurationin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.exporter.ExporterNetworkNode>
-
readConfiguration
public void readConfiguration(net.minecraft.world.level.storage.ValueInput input) - Specified by:
readConfigurationin interfaceConfigurationCardTarget- Overrides:
readConfigurationin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.exporter.ExporterNetworkNode>
-
preRemoveSideEffects
public void preRemoveSideEffects(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Overrides:
preRemoveSideEffectsin classnet.minecraft.world.level.block.entity.BlockEntity
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfacenet.minecraft.world.Nameable
-
createMenu
public @Nullable net.minecraft.world.inventory.AbstractContainerMenu createMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
getMenuData
- Specified by:
getMenuDatain interfaceExtendedMenuProvider<ExporterData>
-
getMenuCodec
public net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, ExporterData> getMenuCodec()- Specified by:
getMenuCodecin interfaceExtendedMenuProvider<ExporterData>
-
doesBlockStateChangeWarrantNetworkNodeUpdate
protected boolean doesBlockStateChangeWarrantNetworkNodeUpdate(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState) - Overrides:
doesBlockStateChangeWarrantNetworkNodeUpdatein classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.exporter.ExporterNetworkNode>
-