Class OilDrillBaseBlockEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.hbm_m.block.entity.BaseMachineBlockEntity
com.hbm_m.block.entity.OilDrillBaseBlockEntity
All Implemented Interfaces:
IFluidConnectorMK2, IFluidProviderMK2, IFluidStandardSenderMK2, IFluidUserMK2, NodeNet.ILoadedEntry, IEnergyConnector, IEnergyProvider, IEnergyReceiver, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, 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:
MachineDerrickBlockEntity

public abstract class OilDrillBaseBlockEntity extends BaseMachineBlockEntity implements IFluidStandardSenderMK2
  • Field Details

    • indicator

      public int indicator
    • tanks

      public FluidTank[] tanks
    • upgradeManager

      protected UpgradeManager upgradeManager
    • speedLevel

      public int speedLevel
    • energyLevel

      public int energyLevel
    • overLevel

      public int overLevel
    • afterburnerLevel

      public int afterburnerLevel
    • trace

      protected Set<net.minecraft.core.BlockPos> trace
  • Constructor Details

    • OilDrillBaseBlockEntity

      public OilDrillBaseBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • getMaxEnergyStored

      public long getMaxEnergyStored()
      Description copied from interface: IEnergyProvider
      Получить максимальную емкость
      Specified by:
      getMaxEnergyStored in interface IEnergyProvider
      Specified by:
      getMaxEnergyStored in interface IEnergyReceiver
      Overrides:
      getMaxEnergyStored in class BaseMachineBlockEntity
    • load

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

      protected void saveAdditional(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class BaseMachineBlockEntity
    • tick

      public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, OilDrillBaseBlockEntity entity)
    • updateUpgrades

      protected void updateUpgrades()
    • getPowerReqEff

      public int getPowerReqEff()
    • getDelayEff

      public int getDelayEff()
    • getPowerReq

      public abstract int getPowerReq()
    • getDelay

      public abstract int getDelay()
    • getMaxPower

      public abstract long getMaxPower()
    • canPump

      public boolean canPump()
    • getDrillDepth

      public int getDrillDepth()
    • tryDrill

      public void tryDrill(net.minecraft.core.BlockPos pos)
    • onDrill

      public void onDrill(net.minecraft.core.BlockPos pos)
    • trySuck

      public boolean trySuck(net.minecraft.core.BlockPos pos)
    • canSuckBlock

      public boolean canSuckBlock(net.minecraft.world.level.block.Block b)
    • suckRec

      public boolean suckRec(net.minecraft.core.BlockPos pos, int layer)
    • doSuck

      public void doSuck(net.minecraft.core.BlockPos pos)
    • onSuck

      public abstract void onSuck(net.minecraft.core.BlockPos pos)
    • getConPos

      public abstract net.minecraft.core.Direction[] getConPos()
    • getValidUpgrades

      public Map<ItemMachineUpgrade.UpgradeType,Integer> getValidUpgrades()
    • getAllTanks

      public FluidTank[] getAllTanks()
      Description copied from interface: IFluidUserMK2
      Все баки этой машины. Используется для display/debug.
      Specified by:
      getAllTanks in interface IFluidUserMK2
    • getSendingTanks

      public FluidTank[] getSendingTanks()
      Specified by:
      getSendingTanks in interface IFluidStandardSenderMK2
    • isLoaded

      public boolean isLoaded()
      Specified by:
      isLoaded in interface NodeNet.ILoadedEntry
    • canConnect

      public boolean canConnect(net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.Direction fromDir)
      Description copied from interface: IFluidConnectorMK2
      Может ли этот коннектор принимать/отдавать жидкость указанного типа с указанной стороны.
      Specified by:
      canConnect in interface IFluidConnectorMK2
      Parameters:
      fluid - тип жидкости
      fromDir - направление ОТ ЭТОГО узла к соседу (сторона, через которую идёт соединение)