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