Class HeatPipeBlockEntity
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.HeatPipeBlockEntity
- All Implemented Interfaces:
CamouflageableBlockEntity,IGUIButtonSensitive,IHeatExchangingTE,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>
public class HeatPipeBlockEntity
extends AbstractTickingBlockEntity
implements CamouflageableBlockEntity, 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 TypeFieldDescriptionstatic final BiPredicate<net.minecraft.world.level.LevelAccessor,net.minecraft.core.BlockPos> 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
ConstructorsConstructorDescriptionHeatPipeBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockStateGet the camouflage state; the blockstate which will be used to render this block entity's block.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.items.IItemHandlerBiPredicate<net.minecraft.world.level.LevelAccessor,net.minecraft.core.BlockPos> Should this (heat-using) machine lose heat to the surrounding air blocks? Most blocks do.voidreadFromPacket(net.minecraft.nbt.CompoundTag tag) Encoded into the description packet.voidsetCamouflage(net.minecraft.world.level.block.state.BlockState state) Set the camouflage for the block entity.voidwriteToPacket(net.minecraft.nbt.CompoundTag tag) Encoded into the description packet.Methods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
tickClient, tickCommonPost, tickCommonPre, tickServerMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
addLuaMethods, countPlayersUsing, getCachedNeighbor, getCapability, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getEnergyCap, getFluidCap, 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, requestModelDataUpdate, saveAdditional, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, setRemoved, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighboursMethods 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, initHeatExchangersOnPlacement, initializeHullHeatExchangers, shouldShowGuiHeatTabMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
NO_AIR_OR_LIQUIDS
public static final BiPredicate<net.minecraft.world.level.LevelAccessor,net.minecraft.core.BlockPos> NO_AIR_OR_LIQUIDS
-
-
Constructor Details
-
HeatPipeBlockEntity
public HeatPipeBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getPrimaryInventory
public net.minecraftforge.items.IItemHandler getPrimaryInventory()- Specified by:
getPrimaryInventoryin classAbstractPneumaticCraftBlockEntity
-
getHeatCap
public net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> getHeatCap(net.minecraft.core.Direction side) - Overrides:
getHeatCapin classAbstractPneumaticCraftBlockEntity
-
heatExchangerBlockFilter
public BiPredicate<net.minecraft.world.level.LevelAccessor,net.minecraft.core.BlockPos> heatExchangerBlockFilter()Description copied from interface:IHeatExchangingTEShould this (heat-using) machine lose heat to the surrounding air blocks? Most blocks do.- Specified by:
heatExchangerBlockFilterin interfaceIHeatExchangingTE- Returns:
- true if heat will be lost to the air on exposed faces, false otherwise
-
writeToPacket
public void writeToPacket(net.minecraft.nbt.CompoundTag tag) Description copied from class:AbstractPneumaticCraftBlockEntityEncoded into the description packet. Also included in saved data written byBlockEntity.saveAdditional(CompoundTag)Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced, or for non-ticking tile entities.- Specified by:
writeToPacketin interfaceIDescSynced- Overrides:
writeToPacketin classAbstractPneumaticCraftBlockEntity- Parameters:
tag- NBT tag
-
readFromPacket
public void readFromPacket(net.minecraft.nbt.CompoundTag tag) Description copied from class:AbstractPneumaticCraftBlockEntityEncoded into the description packet. Also included in saved data read byAbstractPneumaticCraftBlockEntity.load(CompoundTag). Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced, or for non-ticking tile entities.- Specified by:
readFromPacketin interfaceIDescSynced- Overrides:
readFromPacketin classAbstractPneumaticCraftBlockEntity- Parameters:
tag- NBT tag
-
getCamouflage
public net.minecraft.world.level.block.state.BlockState getCamouflage()Description copied from interface:CamouflageableBlockEntityGet the camouflage state; the blockstate which will be used to render this block entity's block.- Specified by:
getCamouflagein interfaceCamouflageableBlockEntity- Returns:
- the camouflage state, or null if the block should not be camouflaged
-
setCamouflage
public void setCamouflage(net.minecraft.world.level.block.state.BlockState state) Description copied from interface:CamouflageableBlockEntitySet the camouflage for the block entity. The block entity should sync this state to the client, and do any necessary re-rendering of the block when the synced state changes.- Specified by:
setCamouflagein interfaceCamouflageableBlockEntity- Parameters:
state- the camo block state
-
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
-