Class StressGaugeBlockEntity

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

public class StressGaugeBlockEntity extends GaugeBlockEntity
  • Field Details

  • Constructor Details

    • StressGaugeBlockEntity

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

    • registerCapabilities

      public static void registerCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event)
    • addBehaviours

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

      public void updateFromNetwork(float maxStress, float currentStress, int networkSize)
      Overrides:
      updateFromNetwork in class KineticBlockEntity
    • onSpeedChanged

      public void onSpeedChanged(float prevSpeed)
      Overrides:
      onSpeedChanged in class KineticBlockEntity
    • 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 BlockEntity that implements this interface
      Specified by:
      addToGoggleTooltip in interface IHaveGoggleInformation
      Overrides:
      addToGoggleTooltip in class GaugeBlockEntity
      Returns:
      true if the tooltip creation was successful and should be displayed, or false if the overlay should not be displayed
    • 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 GaugeBlockEntity
    • getNetworkStress

      public float getNetworkStress()
    • getNetworkCapacity

      public float getNetworkCapacity()
    • onObserved

      public void onObserved()
    • invalidate

      public void invalidate()
      Description copied from class: SmartBlockEntity
      Block destroyed or Chunk unloaded. Usually invalidates capabilities
      Overrides:
      invalidate in class SmartBlockEntity