Class CompressedIronBlockBlockEntity
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.CompressedIronBlockBlockEntity
- All Implemented Interfaces:
IComparatorSupport,IGUIButtonSensitive,IHeatExchangingTE,IHeatTinted,ILuaMethodProvider,IDescSynced,IUpgradeHolder,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>
- Direct Known Subclasses:
CreativeCompressedIronBlockBlockEntity,HeatSinkBlockEntity
public class CompressedIronBlockBlockEntity
extends AbstractTickingBlockEntity
implements IComparatorSupport, IHeatTinted, 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 TypeFieldDescriptionprotected final IHeatExchangerLogicprotected final SyncedTemperatureFields 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
ConstructorsConstructorDescriptionCompressedIronBlockBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptiongetColorForTintIndex(int tintIndex) Called clientside to get a tint colour for the given tint index.intnet.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.items.IItemHandlerprotected booleanvoidMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
tickClient, tickCommonPost, tickCommonPreMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
addLuaMethods, countPlayersUsing, getCachedNeighbor, getCapability, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeCache, getUpgradeHandler, getUpgrades, handleGUIButtonPress, handleUpdateTag, isGuiUseableByPlayer, load, nonNullLevel, onBlockRotated, onDescUpdate, onGuiUpdate, onLoad, onNeighborBlockUpdate, onNeighborTileUpdate, onUpgradesChanged, readFromPacket, requestModelDataUpdate, saveAdditional, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, setRemoved, shouldPreserveStateOnBreak, shouldSyncField, updateNeighbours, writeToPacketMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getTileData, 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, onDataPacket, serializeNBTMethods inherited from interface me.desht.pneumaticcraft.common.block.entity.IHeatExchangingTE
getHeatExchanger, heatExchangerBlockFilter, initHeatExchangersOnPlacement, initializeHullHeatExchangers, shouldShowGuiHeatTabMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
heatExchanger
-
syncedTemperature
-
-
Constructor Details
-
CompressedIronBlockBlockEntity
public CompressedIronBlockBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getHeatCap
public net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> getHeatCap(net.minecraft.core.Direction side) - Overrides:
getHeatCapin classAbstractPneumaticCraftBlockEntity
-
tickServer
public void tickServer()- Overrides:
tickServerin classAbstractTickingBlockEntity
-
shouldRerenderChunkOnDescUpdate
protected boolean shouldRerenderChunkOnDescUpdate()- Overrides:
shouldRerenderChunkOnDescUpdatein classAbstractPneumaticCraftBlockEntity
-
getPrimaryInventory
public net.minecraftforge.items.IItemHandler getPrimaryInventory()- Specified by:
getPrimaryInventoryin classAbstractPneumaticCraftBlockEntity
-
getComparatorValue
public int getComparatorValue()- Specified by:
getComparatorValuein interfaceIComparatorSupport
-
getColorForTintIndex
Description copied from interface:IHeatTintedCalled clientside to get a tint colour for the given tint index.- Specified by:
getColorForTintIndexin interfaceIHeatTinted- Parameters:
tintIndex- the tint index of the model quad to be tinted- Returns:
- a tint colour
-
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
-