Interface SculkSensorListener.Callback
- All Known Implementing Classes:
SculkSensorBlockEntity,SculkShriekerBlockEntity,WardenEntity
- Enclosing class:
SculkSensorListener
public static interface SculkSensorListener.Callback
- Mappings:
Namespace Name official cwg$bintermediary net/minecraft/class_5718$class_5719named net/minecraft/world/event/listener/SculkSensorListener$Callback
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, int delay) Accepts a game event after delay.booleanaccepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity) Returns whether the callback wants to accept this event.default booleangetTag()default voidonListen()
-
Method Details
-
getTag
- Mappings:
Namespace Name Mixin selector official tLcwg$b;t()Lait;intermediary method_42210Lnet/minecraft/class_5718$class_5719;method_42210()Lnet/minecraft/class_6862;named getTagLnet/minecraft/world/event/listener/SculkSensorListener$Callback;getTag()Lnet/minecraft/tag/TagKey;
-
canAccept
- Mappings:
Namespace Name Mixin selector official a_Lcwg$b;a_(Lcwa;Layl;)Zintermediary method_42324Lnet/minecraft/class_5718$class_5719;method_42324(Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;)Znamed canAcceptLnet/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 aLcwg$b;a(Laeh;Lcwc;Lgk;Lcwa;Layl;)Zintermediary method_32970Lnet/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;)Znamed acceptsLnet/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 aLcwg$b;a(Laeh;Lcwc;Lgk;Lcwa;Layl;Layl;I)Vintermediary method_32969Lnet/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)Vnamed acceptLnet/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 fLcwg$b;f()Vintermediary method_42672Lnet/minecraft/class_5718$class_5719;method_42672()Vnamed onListenLnet/minecraft/world/event/listener/SculkSensorListener$Callback;onListen()V
-