Interface IHaveHoveringInformation

All Superinterfaces:
IHaveCustomOverlayIcon
All Known Implementing Classes:
ArmBlockEntity, BacktankBlockEntity, BasinOperatingBlockEntity, BeltBlockEntity, BlockBreakingKineticBlockEntity, BracketedKineticBlockEntity, ChainConveyorBlockEntity, ChainGearshiftBlockEntity, ClockworkBearingBlockEntity, ClutchBlockEntity, CreativeMotorBlockEntity, CrushingWheelBlockEntity, CuckooClockBlockEntity, DeployerBlockEntity, DirectionalShaftHalvesBlockEntity, DrillBlockEntity, EjectorBlockEntity, ElevatorPulleyBlockEntity, EncasedFanBlockEntity, FlapDisplayBlockEntity, FluidValveBlockEntity, FlywheelBlockEntity, FrogportBlockEntity, FunnelBlockEntity, GantryCarriageBlockEntity, GantryShaftBlockEntity, GaugeBlockEntity, GearboxBlockEntity, GearshiftBlockEntity, GeneratingKineticBlockEntity, HandCrankBlockEntity, HosePulleyBlockEntity, KineticBlockEntity, LargeWaterWheelBlockEntity, LinearActuatorBlockEntity, MechanicalBearingBlockEntity, MechanicalCrafterBlockEntity, MechanicalMixerBlockEntity, MechanicalPistonBlockEntity, MechanicalPressBlockEntity, MillstoneBlockEntity, PoweredShaftBlockEntity, PulleyBlockEntity, PumpBlockEntity, SawBlockEntity, SequencedGearshiftBlockEntity, SimpleKineticBlockEntity, SpeedControllerBlockEntity, SpeedGaugeBlockEntity, SplitShaftBlockEntity, StockTickerBlockEntity, StressGaugeBlockEntity, TurntableBlockEntity, ValveHandleBlockEntity, WaterWheelBlockEntity, WindmillBearingBlockEntity

public non-sealed interface IHaveHoveringInformation extends IHaveCustomOverlayIcon
Implement this interface on the BlockEntity that wants to add info to the hovering overlay
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    addToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
    This method will be called when looking at a BlockEntity that implements this interface

    Methods inherited from interface com.simibubi.create.api.equipment.goggles.IHaveCustomOverlayIcon

    getIcon
  • Method Details

    • addToTooltip

      default boolean addToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
      This method will be called when looking at a BlockEntity that implements this interface
      Returns:
      true if the tooltip creation was successful and should be displayed, or false if the overlay should not be displayed