Interface IHaveCustomOverlayIcon

All Known Subinterfaces:
IHaveGoggleInformation, IHaveHoveringInformation
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, FrogportBlockEntity, FunnelBlockEntity, 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, StockTickerBlockEntity, StressGaugeBlockEntity, TurntableBlockEntity, ValveHandleBlockEntity, WaterWheelBlockEntity, WhistleBlockEntity, WindmillBearingBlockEntity

public sealed interface IHaveCustomOverlayIcon permits IHaveGoggleInformation, IHaveHoveringInformation
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.item.ItemStack
    getIcon(boolean isPlayerSneaking)
    This method will be called when looking at a BlockEntity that implements IHaveGoggleInformation or IHaveHoveringInformation
  • Method Details

    • getIcon

      default net.minecraft.world.item.ItemStack getIcon(boolean isPlayerSneaking)
      This method will be called when looking at a BlockEntity that implements IHaveGoggleInformation or IHaveHoveringInformation
      Returns:
      The ItemStack you want the overlay to show instead of the goggles