Class MachineDerrickBlockEntity

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:
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>

public class MachineDerrickBlockEntity extends OilDrillBaseBlockEntity
  • Constructor Details

    • MachineDerrickBlockEntity

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

    • tick

      public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, MachineDerrickBlockEntity blockEntity)
    • getPowerReq

      public int getPowerReq()
      Specified by:
      getPowerReq in class OilDrillBaseBlockEntity
    • getDelay

      public int getDelay()
      Specified by:
      getDelay in class OilDrillBaseBlockEntity
    • getMaxPower

      public long getMaxPower()
      Specified by:
      getMaxPower in class OilDrillBaseBlockEntity
    • onSuck

      public void onSuck(net.minecraft.core.BlockPos pos)
      Specified by:
      onSuck in class OilDrillBaseBlockEntity
    • getConPos

      public net.minecraft.core.Direction[] getConPos()
      Specified by:
      getConPos in class OilDrillBaseBlockEntity
    • isItemValidForSlot

      protected boolean isItemValidForSlot(int slot, net.minecraft.world.item.ItemStack stack)
      Specified by:
      isItemValidForSlot in class BaseMachineBlockEntity
    • getDefaultName

      protected net.minecraft.network.chat.Component getDefaultName()
      Specified by:
      getDefaultName in class BaseMachineBlockEntity
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
    • createMenu

      public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player)