Interface IHaveGoggleInformation

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

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

    Modifier and Type
    Method
    Description
    default boolean
    addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking)
    This method will be called when looking at a BlockEntity that implements this interface
    default boolean
    containedFluidTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking, net.neoforged.neoforge.fluids.capability.IFluidHandler handler)
     

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

    getIcon
  • Method Details

    • addToGoggleTooltip

      default boolean addToGoggleTooltip(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
    • containedFluidTooltip

      default boolean containedFluidTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking, net.neoforged.neoforge.fluids.capability.IFluidHandler handler)