java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
All Implemented Interfaces:
IHaveGoggleInformation, IHaveHoveringInformation, ISpecialBlockEntityItemRequirement, IInteractionChecker, IPartialSafeNBT, 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:
SpeedGaugeTileEntity, StressGaugeTileEntity

public class GaugeTileEntity extends KineticTileEntity implements IHaveGoggleInformation
  • Field Details

    • dialTarget

      public float dialTarget
    • dialState

      public float dialState
    • prevDialState

      public float prevDialState
    • color

      public int color
  • Constructor Details

    • GaugeTileEntity

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

    • write

      public void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class KineticTileEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class KineticTileEntity
    • tick

      public void tick()
      Overrides:
      tick in class KineticTileEntity
    • addToGoggleTooltip

      public boolean addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
      Description copied from interface: IHaveGoggleInformation
      this method will be called when looking at a TileEntity that implemented this interface
      Specified by:
      addToGoggleTooltip in interface IHaveGoggleInformation
      Overrides:
      addToGoggleTooltip in class KineticTileEntity
      Returns:
      true if the tooltip creation was successful and should be displayed, or false if the overlay should not be displayed