Class EtchingTankBlockEntity

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:
IGUIButtonSensitive, IHeatExchangingTE, ILuaMethodProvider, 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 EtchingTankBlockEntity extends AbstractTickingBlockEntity implements net.minecraft.world.MenuProvider, ISerializableTanks, IHeatExchangingTE
  • Field Details

  • Constructor Details

    • EtchingTankBlockEntity

      public EtchingTankBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • tickCommonPre

      public void tickCommonPre()
      Description copied from class: AbstractTickingBlockEntity
      Called on both server and client, before anything else
      Overrides:
      tickCommonPre in class AbstractTickingBlockEntity
    • tickServer

      public void tickServer()
      Overrides:
      tickServer in class AbstractTickingBlockEntity
    • getTickInterval

      public int getTickInterval()
    • isOutputFull

      public boolean isOutputFull()
    • isFailedOutputFull

      public boolean isFailedOutputFull()
    • getPrimaryInventory

      public net.minecraftforge.items.IItemHandler getPrimaryInventory()
      Specified by:
      getPrimaryInventory in class AbstractPneumaticCraftBlockEntity
    • getOutputHandler

      public me.desht.pneumaticcraft.common.block.entity.EtchingTankBlockEntity.OutputItemHandler getOutputHandler()
    • getFailedHandler

      public me.desht.pneumaticcraft.common.block.entity.EtchingTankBlockEntity.FailedItemHandler getFailedHandler()
    • getAcidTank

      public net.minecraftforge.fluids.IFluidTank getAcidTank()
    • getInventoryCap

      @Nonnull protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventoryCap(net.minecraft.core.Direction side)
      Overrides:
      getInventoryCap in class AbstractPneumaticCraftBlockEntity
    • getHeatCap

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

      @NotNull public @NotNull net.minecraftforge.common.util.LazyOptional<net.minecraftforge.fluids.capability.IFluidHandler> getFluidCap(net.minecraft.core.Direction side)
      Overrides:
      getFluidCap in class AbstractPneumaticCraftBlockEntity
    • getContentsToDrop

      public void getContentsToDrop(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> drops)
      Description copied from class: AbstractPneumaticCraftBlockEntity
      Collect all items which should be dropped when this BE is broken. Override and extend this in subclassing BE's which have extra inventories to be dropped.
      Overrides:
      getContentsToDrop in class AbstractPneumaticCraftBlockEntity
      Parameters:
      drops - list in which to collect dropped items
    • createMenu

      @Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int windowId, net.minecraft.world.entity.player.Inventory playerInv, net.minecraft.world.entity.player.Player player)
      Specified by:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor
    • getSerializableTanks

      @Nonnull public Map<String,PNCFluidTank> getSerializableTanks()
      Description copied from interface: ISerializableTanks
      Get a mapping of all tanks; this maps a tag name, which is used as the serialization key, to a fluid tank.
      Specified by:
      getSerializableTanks in interface ISerializableTanks
      Returns:
      a map of tag names to tanks
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class AbstractPneumaticCraftBlockEntity
    • load

      public void load(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      load in class AbstractPneumaticCraftBlockEntity
    • 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