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
Implement this interface on the
BlockEntity that wants to add info to the hovering overlay-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanaddToTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) This method will be called when looking at aBlockEntitythat implements this interfaceMethods 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 aBlockEntitythat implements this interface- Returns:
trueif the tooltip creation was successful and should be displayed, orfalseif the overlay should not be displayed
-