类 GameEventDebugRenderer.Listener
- java.lang.Object
-
- net.minecraft.client.render.debug.GameEventDebugRenderer.Listener
-
- 所有已实现的接口:
GameEventListener
@Environment(CLIENT) static class GameEventDebugRenderer.Listener extends Object implements GameEventListener
- Mappings:
Namespace Name official epc$bintermediary net/minecraft/class_5739$class_5741named net/minecraft/client/render/debug/GameEventDebugRenderer$Listener
-
-
字段概要
字段 修饰符和类型 字段 说明 PositionSourcepositionSourceintrange
-
构造器概要
构造器 构造器 说明 Listener(PositionSource positionSource, int range)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Optional<BlockPos>getPos(World world)PositionSourcegetPositionSource()Returns the position source of this listener.intgetRange()Returns the range, in blocks, of the listener.booleanisTooFar(World world, BlockPos pos)booleanlisten(World world, GameEvent event, @Nullable Entity entity, BlockPos pos)Listens to an incoming game event.
-
-
-
字段详细资料
-
positionSource
public final PositionSource positionSource
- Mappings:
Namespace Name Mixin selector official aLepc$b;a:Lcnx;intermediary field_28261Lnet/minecraft/class_5739$class_5741;field_28261:Lnet/minecraft/class_5716;named positionSourceLnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;positionSource:Lnet/minecraft/world/event/PositionSource;
-
range
public final int range
- Mappings:
Namespace Name Mixin selector official bLepc$b;b:Iintermediary field_28262Lnet/minecraft/class_5739$class_5741;field_28262:Inamed rangeLnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;range:I
-
-
构造器详细资料
-
Listener
public Listener(PositionSource positionSource, int range)
- Mappings:
Namespace Name Mixin selector official <init>Lepc$b;<init>(Lcnx;I)Vintermediary <init>Lnet/minecraft/class_5739$class_5741;<init>(Lnet/minecraft/class_5716;I)Vnamed <init>Lnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;<init>(Lnet/minecraft/world/event/PositionSource;I)V
-
-
方法详细资料
-
isTooFar
public boolean isTooFar(World world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLepc$b;a(Lbvr;Lgb;)Zintermediary method_33095Lnet/minecraft/class_5739$class_5741;method_33095(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Znamed isTooFarLnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;isTooFar(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
getPos
public Optional<BlockPos> getPos(World world)
- Mappings:
Namespace Name Mixin selector official aLepc$b;a(Lbvr;)Ljava/util/Optional;intermediary method_33094Lnet/minecraft/class_5739$class_5741;method_33094(Lnet/minecraft/class_1937;)Ljava/util/Optional;named getPosLnet/minecraft/client/render/debug/GameEventDebugRenderer$Listener;getPos(Lnet/minecraft/world/World;)Ljava/util/Optional;
-
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
-
-