Class BacktankBlockEntity

All Implemented Interfaces:
IHaveCustomOverlayIcon, IHaveGoggleInformation, IHaveHoveringInformation, PartialSafeNBT, SpecialBlockEntityItemRequirement, IInteractionChecker, net.createmod.ponder.api.VirtualBlockEntity, net.minecraft.world.Nameable, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

public class BacktankBlockEntity extends KineticBlockEntity implements net.minecraft.world.Nameable
  • Field Details

    • airLevel

      public int airLevel
    • airLevelTimer

      public int airLevelTimer
  • Constructor Details

    • BacktankBlockEntity

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

    • getDefaultName

      public static net.minecraft.network.chat.Component getDefaultName(net.minecraft.world.level.block.state.BlockState state)
    • addBehaviours

      public void addBehaviours(List<BlockEntityBehaviour> behaviours)
      Overrides:
      addBehaviours in class KineticBlockEntity
    • onSpeedChanged

      public void onSpeedChanged(float previousSpeed)
      Overrides:
      onSpeedChanged in class KineticBlockEntity
    • tick

      public void tick()
      Overrides:
      tick in class KineticBlockEntity
    • getComparatorOutput

      public int getComparatorOutput()
    • write

      protected void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class KineticBlockEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket)
      Description copied from class: SmartBlockEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class KineticBlockEntity
    • applyImplicitComponents

      protected void applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput)
      Overrides:
      applyImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • collectImplicitComponents

      protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components)
      Overrides:
      collectImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • playFilledEffect

      protected void playFilledEffect()
    • getName

      public net.minecraft.network.chat.Component getName()
      Specified by:
      getName in interface net.minecraft.world.Nameable
    • getAirLevel

      public int getAirLevel()
    • setAirLevel

      public void setAirLevel(int airLevel)
    • setCustomName

      public void setCustomName(net.minecraft.network.chat.Component customName)
    • setCapacityEnchantLevel

      public void setCapacityEnchantLevel(int capacityEnchantLevel)
    • setComponentPatch

      public void setComponentPatch(net.minecraft.core.component.DataComponentPatch componentPatch)
    • getComponentPatch

      public net.minecraft.core.component.DataComponentPatch getComponentPatch()