Class HeatPipeBlockEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
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
  • 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:
      getPrimaryInventory in class AbstractPneumaticCraftBlockEntity
    • getHeatCap

      public net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> getHeatCap(net.minecraft.core.Direction side)
      Overrides:
      getHeatCap in class AbstractPneumaticCraftBlockEntity
    • heatExchangerBlockFilter

      public BiPredicate<net.minecraft.world.level.LevelAccessor,net.minecraft.core.BlockPos> heatExchangerBlockFilter()
      Description copied from interface: IHeatExchangingTE
      Should this (heat-using) machine lose heat to the surrounding air blocks? Most blocks do.
      Specified by:
      heatExchangerBlockFilter in interface IHeatExchangingTE
      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: AbstractPneumaticCraftBlockEntity
      Encoded into the description packet. Also included in saved data written by BlockEntity.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:
      writeToPacket in interface IDescSynced
      Overrides:
      writeToPacket in class AbstractPneumaticCraftBlockEntity
      Parameters:
      tag - NBT tag
    • readFromPacket

      public void readFromPacket(net.minecraft.nbt.CompoundTag tag)
      Description copied from class: AbstractPneumaticCraftBlockEntity
      Encoded into the description packet. Also included in saved data read by AbstractPneumaticCraftBlockEntity.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:
      readFromPacket in interface IDescSynced
      Overrides:
      readFromPacket in class AbstractPneumaticCraftBlockEntity
      Parameters:
      tag - NBT tag
    • getCamouflage

      public net.minecraft.world.level.block.state.BlockState getCamouflage()
      Description copied from interface: CamouflageableBlockEntity
      Get the camouflage state; the blockstate which will be used to render this block entity's block.
      Specified by:
      getCamouflage in interface CamouflageableBlockEntity
      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: CamouflageableBlockEntity
      Set 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:
      setCamouflage in interface CamouflageableBlockEntity
      Parameters:
      state - the camo block state
    • getHeatExchanger

      public IHeatExchangerLogic getHeatExchanger(net.minecraft.core.Direction dir)
      Description copied from interface: IHeatExchangingTE
      Get the heat exchanger on the given face. This may return null iff the direction is not null.
      Specified by:
      getHeatExchanger in interface IHeatExchangingTE
      Parameters:
      dir - the side of the block to check, or null for the default/primary heat exchanger
      Returns:
      a heat exchanger