类 SculkSensorListener
- java.lang.Object
-
- net.minecraft.world.event.listener.SculkSensorListener
-
- 所有已实现的接口:
GameEventListener
public class SculkSensorListener extends Object implements GameEventListener
- Mappings:
Namespace Name official coaintermediary net/minecraft/class_5718named net/minecraft/world/event/listener/SculkSensorListener
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceSculkSensorListener.Callback
-
字段概要
字段 修饰符和类型 字段 说明 protected SculkSensorListener.Callbackcallbackprotected intdelayprotected intdistanceprotected Optional<GameEvent>eventprotected PositionSourcepositionSourceprotected intrange
-
构造器概要
构造器 构造器 说明 SculkSensorListener(PositionSource positionSource, int range, SculkSensorListener.Callback listener)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PositionSourcegetPositionSource()Returns the position source of this listener.intgetRange()Returns the range, in blocks, of the listener.private booleanisOccluded(World world, BlockPos pos, BlockPos sourcePos)booleanlisten(World world, GameEvent event, @Nullable Entity entity, BlockPos pos)Listens to an incoming game event.private voidlisten(World world, GameEvent event, BlockPos pos, BlockPos sourcePos)private booleanshouldActivate(GameEvent event, @Nullable Entity entity)voidtick(World world)
-
-
-
字段详细资料
-
positionSource
protected final PositionSource positionSource
- Mappings:
Namespace Name Mixin selector official aLcoa;a:Lcnx;intermediary field_28187Lnet/minecraft/class_5718;field_28187:Lnet/minecraft/class_5716;named positionSourceLnet/minecraft/world/event/listener/SculkSensorListener;positionSource:Lnet/minecraft/world/event/PositionSource;
-
range
protected final int range
- Mappings:
Namespace Name Mixin selector official bLcoa;b:Iintermediary field_28188Lnet/minecraft/class_5718;field_28188:Inamed rangeLnet/minecraft/world/event/listener/SculkSensorListener;range:I
-
callback
protected final SculkSensorListener.Callback callback
- Mappings:
Namespace Name Mixin selector official cLcoa;c:Lcoa$a;intermediary field_28189Lnet/minecraft/class_5718;field_28189:Lnet/minecraft/class_5718$class_5719;named callbackLnet/minecraft/world/event/listener/SculkSensorListener;callback:Lnet/minecraft/world/event/listener/SculkSensorListener$Callback;
-
event
protected Optional<GameEvent> event
- Mappings:
Namespace Name Mixin selector official dLcoa;d:Ljava/util/Optional;intermediary field_28190Lnet/minecraft/class_5718;field_28190:Ljava/util/Optional;named eventLnet/minecraft/world/event/listener/SculkSensorListener;event:Ljava/util/Optional;
-
distance
protected int distance
- Mappings:
Namespace Name Mixin selector official eLcoa;e:Iintermediary field_28191Lnet/minecraft/class_5718;field_28191:Inamed distanceLnet/minecraft/world/event/listener/SculkSensorListener;distance:I
-
delay
protected int delay
- Mappings:
Namespace Name Mixin selector official fLcoa;f:Iintermediary field_28192Lnet/minecraft/class_5718;field_28192:Inamed delayLnet/minecraft/world/event/listener/SculkSensorListener;delay:I
-
-
构造器详细资料
-
SculkSensorListener
public SculkSensorListener(PositionSource positionSource, int range, SculkSensorListener.Callback listener)
- Mappings:
Namespace Name Mixin selector official <init>Lcoa;<init>(Lcnx;ILcoa$a;)Vintermediary <init>Lnet/minecraft/class_5718;<init>(Lnet/minecraft/class_5716;ILnet/minecraft/class_5718$class_5719;)Vnamed <init>Lnet/minecraft/world/event/listener/SculkSensorListener;<init>(Lnet/minecraft/world/event/PositionSource;ILnet/minecraft/world/event/listener/SculkSensorListener$Callback;)V
-
-
方法详细资料
-
tick
public void tick(World world)
- Mappings:
Namespace Name Mixin selector official aLcoa;a(Lbvr;)Vintermediary method_32964Lnet/minecraft/class_5718;method_32964(Lnet/minecraft/class_1937;)Vnamed tickLnet/minecraft/world/event/listener/SculkSensorListener;tick(Lnet/minecraft/world/World;)V
-
getPositionSource
public PositionSource getPositionSource()
Returns the position source of this listener.- 指定者:
getPositionSource在接口中GameEventListener- Mappings:
Namespace Name Mixin selector official aLcnv;a()Lcnx;intermediary method_32946Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;named getPositionSourceLnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;
-
getRange
public int getRange()
Returns the range, in blocks, of the listener.- 指定者:
getRange在接口中GameEventListener- Mappings:
Namespace Name Mixin selector official bLcnv;b()Iintermediary method_32948Lnet/minecraft/class_5714;method_32948()Inamed getRangeLnet/minecraft/world/event/listener/GameEventListener;getRange()I
-
listen
public boolean listen(World world, GameEvent event, @Nullable @Nullable Entity entity, BlockPos pos)
Listens to an incoming game event.- 指定者:
listen在接口中GameEventListener- 返回:
trueif the game event has been accepted by this listener- Mappings:
Namespace Name Mixin selector official aLcnv;a(Lbvr;Lcnt;Lasl;Lgb;)Zintermediary method_32947Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_1937;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)Znamed listenLnet/minecraft/world/event/listener/GameEventListener;listen(Lnet/minecraft/world/World;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)Z
-
shouldActivate
private boolean shouldActivate(GameEvent event, @Nullable @Nullable Entity entity)
- Mappings:
Namespace Name Mixin selector official aLcoa;a(Lcnt;Lasl;)Zintermediary method_32968Lnet/minecraft/class_5718;method_32968(Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;)Znamed shouldActivateLnet/minecraft/world/event/listener/SculkSensorListener;shouldActivate(Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;)Z
-
listen
private void listen(World world, GameEvent event, BlockPos pos, BlockPos sourcePos)
- Mappings:
Namespace Name Mixin selector official aLcoa;a(Lbvr;Lcnt;Lgb;Lgb;)Vintermediary method_32965Lnet/minecraft/class_5718;method_32965(Lnet/minecraft/class_1937;Lnet/minecraft/class_5712;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Vnamed listenLnet/minecraft/world/event/listener/SculkSensorListener;listen(Lnet/minecraft/world/World;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)V
-
isOccluded
private boolean isOccluded(World world, BlockPos pos, BlockPos sourcePos)
- Mappings:
Namespace Name Mixin selector official aLcoa;a(Lbvr;Lgb;Lgb;)Zintermediary method_32966Lnet/minecraft/class_5718;method_32966(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Znamed isOccludedLnet/minecraft/world/event/listener/SculkSensorListener;isOccluded(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Z
-
-