接口 GameEventListener

    • 方法详细资料

      • getPositionSource

        PositionSource getPositionSource()
        Returns the position source of this listener.
        Mappings:
        Namespace Name Mixin selector
        official a Lcnv;a()Lcnx;
        intermediary method_32946 Lnet/minecraft/class_5714;method_32946()Lnet/minecraft/class_5716;
        named getPositionSource Lnet/minecraft/world/event/listener/GameEventListener;getPositionSource()Lnet/minecraft/world/event/PositionSource;
      • getRange

        int getRange()
        Returns the range, in blocks, of the listener.
        Mappings:
        Namespace Name Mixin selector
        official b Lcnv;b()I
        intermediary method_32948 Lnet/minecraft/class_5714;method_32948()I
        named getRange Lnet/minecraft/world/event/listener/GameEventListener;getRange()I
      • listen

        boolean listen​(World world,
                       GameEvent event,
                       @Nullable
                       @Nullable Entity entity,
                       BlockPos pos)
        Listens to an incoming game event.
        返回:
        true if the game event has been accepted by this listener
        Mappings:
        Namespace Name Mixin selector
        official a Lcnv;a(Lbvr;Lcnt;Lasl;Lgb;)Z
        intermediary method_32947 Lnet/minecraft/class_5714;method_32947(Lnet/minecraft/class_1937;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)Z
        named listen Lnet/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