Class RefineryControllerBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
me.desht.pneumaticcraft.common.block.entity.RefineryControllerBlockEntity
- All Implemented Interfaces:
IComparatorSupport,IGUIButtonSensitive,IHeatExchangingTE,ILuaMethodProvider,IRedstoneControl<RefineryControllerBlockEntity>,ISerializableTanks,IDescSynced,IUpgradeHolder,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.minecraft.world.Nameable,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class RefineryControllerBlockEntity
extends AbstractTickingBlockEntity
implements IRedstoneControl<RefineryControllerBlockEntity>, IComparatorSupport, ISerializableTanks, net.minecraft.world.MenuProvider, IHeatExchangingTE
-
Nested Class Summary
Nested classes/interfaces inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
AbstractPneumaticCraftBlockEntity.UpgradeHandlerNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionintintfinal me.desht.pneumaticcraft.common.block.entity.RefineryControllerBlockEntity.SyncOnlyTank[]Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionRefineryControllerBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidnet.minecraft.world.inventory.AbstractContainerMenucreateMenu(int i, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity) voidintFor machines which use recipes, get the synced recipe ID client-side for informational purposes@NotNull net.minecraftforge.common.util.LazyOptional<net.minecraftforge.fluids.capability.IFluidHandler>getFluidCap(net.minecraft.core.Direction side) net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic>getHeatCap(net.minecraft.core.Direction side) getHeatExchanger(net.minecraft.core.Direction dir) Get the heat exchanger on the given face.net.minecraftforge.fluids.IFluidTanknet.minecraftforge.items.IItemHandlerGet the redstone controller object for this BEGet a mapping of all tanks; this maps a tag name, which is used as the serialization key, to a fluid tank.voidhandleGUIButtonPress(String tag, boolean shiftHeld, net.minecraft.server.level.ServerPlayer player) voidbooleanstatic booleanisInputFluidValid(net.minecraft.world.level.Level world, net.minecraft.world.level.material.Fluid fluid, int size) voidvoidCalled on both server and client, before anything elsevoidMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
tickCommonPostMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
addLuaMethods, countPlayersUsing, getCachedNeighbor, getCapability, getContentsToDrop, getCustomName, getDescriptionFields, getDisplayName, getEnergyCap, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeCache, getUpgradeHandler, getUpgrades, handleUpdateTag, isGuiUseableByPlayer, load, nonNullLevel, onBlockRotated, onDescUpdate, onGuiUpdate, onLoad, onNeighborBlockUpdate, onNeighborTileUpdate, onUpgradesChanged, readFromPacket, requestModelDataUpdate, saveAdditional, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, setRemoved, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighbours, writeToPacketMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getRenderBoundingBox, hasCustomOutlineRendering, onDataPacket, serializeNBTMethods inherited from interface me.desht.pneumaticcraft.common.block.entity.IHeatExchangingTE
getHeatExchanger, heatExchangerBlockFilter, initHeatExchangersOnPlacement, initializeHullHeatExchangers, shouldShowGuiHeatTabMethods inherited from interface me.desht.pneumaticcraft.common.block.entity.IRedstoneControl
getCurrentRedstonePower, getRedstoneMode, getRedstoneTabTitle, onRedstoneModeChangedMethods inherited from interface me.desht.pneumaticcraft.common.block.entity.ISerializableTanks
deserializeTanks, serializeTanksMethods inherited from interface net.minecraft.world.MenuProvider
getDisplayNameMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
outputsSynced
public final me.desht.pneumaticcraft.common.block.entity.RefineryControllerBlockEntity.SyncOnlyTank[] outputsSynced -
minTemp
public int minTemp -
maxTemp
public int maxTemp
-
-
Constructor Details
-
RefineryControllerBlockEntity
public RefineryControllerBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
isInputFluidValid
public static boolean isInputFluidValid(net.minecraft.world.level.Level world, net.minecraft.world.level.material.Fluid fluid, int size) -
tickCommonPre
public void tickCommonPre()Description copied from class:AbstractTickingBlockEntityCalled on both server and client, before anything else- Overrides:
tickCommonPrein classAbstractTickingBlockEntity
-
tickClient
public void tickClient()- Overrides:
tickClientin classAbstractTickingBlockEntity
-
tickServer
public void tickServer()- Overrides:
tickServerin classAbstractTickingBlockEntity
-
cacheRefineryOutputs
public void cacheRefineryOutputs() -
findAdjacentOutput
-
getCurrentRecipeIdSynced
Description copied from class:AbstractPneumaticCraftBlockEntityFor machines which use recipes, get the synced recipe ID client-side for informational purposes- Overrides:
getCurrentRecipeIdSyncedin classAbstractPneumaticCraftBlockEntity- Returns:
- the recipe id (in string form), or the empty string if no current recipe or not applicable
-
getPrimaryInventory
public net.minecraftforge.items.IItemHandler getPrimaryInventory()- Specified by:
getPrimaryInventoryin classAbstractPneumaticCraftBlockEntity
-
getInputTank
public net.minecraftforge.fluids.IFluidTank getInputTank() -
isBlocked
public boolean isBlocked() -
getRedstoneController
Description copied from interface:IRedstoneControlGet the redstone controller object for this BE- Specified by:
getRedstoneControllerin interfaceIRedstoneControl<RefineryControllerBlockEntity>- Returns:
- the redstone controller
-
handleGUIButtonPress
public void handleGUIButtonPress(String tag, boolean shiftHeld, net.minecraft.server.level.ServerPlayer player) - Specified by:
handleGUIButtonPressin interfaceIGUIButtonSensitive- Overrides:
handleGUIButtonPressin classAbstractPneumaticCraftBlockEntity
-
getComparatorValue
public int getComparatorValue()- Specified by:
getComparatorValuein interfaceIComparatorSupport
-
getFluidCap
@NotNull public @NotNull net.minecraftforge.common.util.LazyOptional<net.minecraftforge.fluids.capability.IFluidHandler> getFluidCap(net.minecraft.core.Direction side) - Overrides:
getFluidCapin classAbstractPneumaticCraftBlockEntity
-
getSerializableTanks
Description copied from interface:ISerializableTanksGet a mapping of all tanks; this maps a tag name, which is used as the serialization key, to a fluid tank.- Specified by:
getSerializableTanksin interfaceISerializableTanks- Returns:
- a map of tag names to tanks
-
createMenu
@Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int i, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
getHeatCap
public net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> getHeatCap(net.minecraft.core.Direction side) - Overrides:
getHeatCapin classAbstractPneumaticCraftBlockEntity
-
getHeatExchanger
Description copied from interface:IHeatExchangingTEGet the heat exchanger on the given face. This may return null iff the direction is not null.- Specified by:
getHeatExchangerin interfaceIHeatExchangingTE- Parameters:
dir- the side of the block to check, or null for the default/primary heat exchanger- Returns:
- a heat exchanger
-
incPlayersUsing
public void incPlayersUsing() -
decPlayersUsing
public void decPlayersUsing()
-