Interface SculkSensorListener.Callback

All Known Implementing Classes:
SculkSensorBlockEntity, SculkShriekerBlockEntity, WardenEntity
Enclosing class:
SculkSensorListener

public static interface SculkSensorListener.Callback
Mappings:
Namespace Name
official cwr$b
intermediary net/minecraft/class_5718$class_5719
named net/minecraft/world/event/listener/SculkSensorListener$Callback
  • Method Details

    • getTag

      default TagKey<GameEvent> getTag()
      Mappings:
      Namespace Name Mixin selector
      official t Lcwr$b;t()Laiv;
      intermediary method_42210 Lnet/minecraft/class_5718$class_5719;method_42210()Lnet/minecraft/class_6862;
      named getTag Lnet/minecraft/world/event/listener/SculkSensorListener$Callback;getTag()Lnet/minecraft/tag/TagKey;
    • canAccept

      default boolean canAccept(GameEvent gameEvent, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a_ Lcwr$b;a_(Lcwl;Lays;)Z
      intermediary method_42324 Lnet/minecraft/class_5718$class_5719;method_42324(Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;)Z
      named canAccept Lnet/minecraft/world/event/listener/SculkSensorListener$Callback;canAccept(Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;)Z
    • accepts

      boolean accepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable @Nullable Entity entity)
      Returns whether the callback wants to accept this event.
      Mappings:
      Namespace Name Mixin selector
      official a Lcwr$b;a(Laej;Lcwn;Lgm;Lcwl;Lays;)Z
      intermediary method_32970 Lnet/minecraft/class_5718$class_5719;method_32970(Lnet/minecraft/class_3218;Lnet/minecraft/class_5714;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;)Z
      named accepts Lnet/minecraft/world/event/listener/SculkSensorListener$Callback;accepts(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;)Z
    • accept

      void accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable @Nullable Entity entity, @Nullable @Nullable Entity sourceEntity, int delay)
      Accepts a game event after delay.
      Mappings:
      Namespace Name Mixin selector
      official a Lcwr$b;a(Laej;Lcwn;Lgm;Lcwl;Lays;Lays;I)V
      intermediary method_32969 Lnet/minecraft/class_5718$class_5719;method_32969(Lnet/minecraft/class_3218;Lnet/minecraft/class_5714;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;I)V
      named accept Lnet/minecraft/world/event/listener/SculkSensorListener$Callback;accept(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;I)V
    • onListen

      default void onListen()
      Mappings:
      Namespace Name Mixin selector
      official f Lcwr$b;f()V
      intermediary method_42672 Lnet/minecraft/class_5718$class_5719;method_42672()V
      named onListen Lnet/minecraft/world/event/listener/SculkSensorListener$Callback;onListen()V