Class SculkSensorListener
java.lang.Object
net.minecraft.world.event.listener.SculkSensorListener
- All Implemented Interfaces:
GameEventListener
public class SculkSensorListener extends Object implements GameEventListener
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSculkSensorListener.class_5719 -
Field Summary
Fields Modifier and Type Field Description protected intcooldownprotected Optional<GameEvent>eventprotected SculkSensorListener.class_5719field_28189protected intfield_28191protected PositionSourcepositionSourceprotected intrange -
Constructor Summary
Constructors Constructor Description SculkSensorListener(PositionSource positionSource, int range, SculkSensorListener.class_5719 class_5719) -
Method Summary
Modifier and Type Method Description PositionSourcegetPositionSource()intgetRange()private booleanisOccluded(World world, BlockPos pos, BlockPos sourcePos)booleanmethod_32947(World world, GameEvent event, Entity entity, BlockPos pos)voidmethod_32964(World world)private voidmethod_32965(World world, GameEvent event, BlockPos pos, BlockPos sourcePos)private booleanshouldActivate(GameEvent event, Entity entity)
-
Field Details
-
positionSource
-
range
protected final int range -
field_28189
-
event
-
field_28191
protected int field_28191 -
cooldown
protected int cooldown
-
-
Constructor Details
-
SculkSensorListener
public SculkSensorListener(PositionSource positionSource, int range, SculkSensorListener.class_5719 class_5719)
-
-
Method Details
-
method_32964
-
getPositionSource
- Specified by:
getPositionSourcein interfaceGameEventListener
-
getRange
public int getRange()- Specified by:
getRangein interfaceGameEventListener
-
method_32947
- Specified by:
method_32947in interfaceGameEventListener
-
shouldActivate
-
method_32965
-
isOccluded
-