Package net.minecraft.block.entity
Class SculkSensorBlockEntity.VibrationCallback
java.lang.Object
net.minecraft.block.entity.SculkSensorBlockEntity.VibrationCallback
- All Implemented Interfaces:
Vibrations.Callback
- Direct Known Subclasses:
CalibratedSculkSensorBlockEntity.Callback
- Enclosing class:
SculkSensorBlockEntity
protected class SculkSensorBlockEntity.VibrationCallback
extends Object
implements Vibrations.Callback
- Mappings:
Namespace Name named net/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallbackintermediary net/minecraft/class_5704$class_8241official drp$a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockPosprivate final PositionSourcestatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.booleanaccepts(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.intgetRange()voidonListen()booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.event.Vibrations.Callback
canAccept, getDelay, getTag
-
Field Details
-
RANGE
public static final int RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named RANGELnet/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallback;RANGE:Iintermediary field_43292Lnet/minecraft/class_5704$class_8241;field_43292:Iofficial bLdrp$a;b:I
-
pos
- Mappings:
Namespace Name Mixin selector named posLnet/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallback;pos:Lnet/minecraft/util/math/BlockPos;intermediary field_44617Lnet/minecraft/class_5704$class_8241;field_44617:Lnet/minecraft/class_2338;official cLdrp$a;c:Ljd;
-
positionSource
- Mappings:
Namespace Name Mixin selector named positionSourceLnet/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallback;positionSource:Lnet/minecraft/world/event/PositionSource;intermediary field_44616Lnet/minecraft/class_5704$class_8241;field_44616:Lnet/minecraft/class_5716;official aLdrp$a;a:Ldyd;
-
-
Constructor Details
-
VibrationCallback
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallback;<init>(Lnet/minecraft/block/entity/SculkSensorBlockEntity;Lnet/minecraft/util/math/BlockPos;)Vintermediary <init>Lnet/minecraft/class_5704$class_8241;<init>(Lnet/minecraft/class_5704;Lnet/minecraft/class_2338;)Vofficial <init>Ldrp$a;<init>(Ldrp;Ljd;)V
-
-
Method Details
-
getRange
public int getRange()- Specified by:
getRangein interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector named getRangeLnet/minecraft/world/event/Vibrations$Callback;getRange()Iintermediary method_49797Lnet/minecraft/class_8514$class_5719;method_49797()Iofficial aLdyi$d;a()I
-
getPositionSource
- Specified by:
getPositionSourcein interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector named getPositionSourceLnet/minecraft/world/event/Vibrations$Callback;getPositionSource()Lnet/minecraft/world/event/PositionSource;intermediary method_51300Lnet/minecraft/class_8514$class_5719;method_51300()Lnet/minecraft/class_5716;official bLdyi$d;b()Ldyd;
-
triggersAvoidCriterion
public boolean triggersAvoidCriterion()- Specified by:
triggersAvoidCriterionin interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector named triggersAvoidCriterionLnet/minecraft/world/event/Vibrations$Callback;triggersAvoidCriterion()Zintermediary method_43695Lnet/minecraft/class_8514$class_5719;method_43695()Zofficial dLdyi$d;d()Z
-
accepts
public boolean accepts(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.- Specified by:
acceptsin interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector named acceptsLnet/minecraft/world/event/Vibrations$Callback;accepts(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/event/GameEvent$Emitter;)Zintermediary method_32970Lnet/minecraft/class_8514$class_5719;method_32970(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_6880;Lnet/minecraft/class_5712$class_7397;)Zofficial aLdyi$d;a(Laqu;Ljd;Ljm;Ldxz$a;)Z
-
accept
public void accept(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable @Nullable Entity sourceEntity, @Nullable @Nullable Entity entity, float distance) Accepts a game event after delay.- Specified by:
acceptin interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector named acceptLnet/minecraft/world/event/Vibrations$Callback;accept(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;F)Vintermediary method_32969Lnet/minecraft/class_8514$class_5719;method_32969(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;F)Vofficial aLdyi$d;a(Laqu;Ljd;Ljm;Lbsr;Lbsr;F)V
-
onListen
public void onListen()- Specified by:
onListenin interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector named onListenLnet/minecraft/world/event/Vibrations$Callback;onListen()Vintermediary method_42672Lnet/minecraft/class_8514$class_5719;method_42672()Vofficial eLdyi$d;e()V
-
requiresTickingChunksAround
public boolean requiresTickingChunksAround()- Specified by:
requiresTickingChunksAroundin interfaceVibrations.Callback- Mappings:
Namespace Name Mixin selector named requiresTickingChunksAroundLnet/minecraft/world/event/Vibrations$Callback;requiresTickingChunksAround()Zintermediary method_51363Lnet/minecraft/class_8514$class_5719;method_51363()Zofficial fLdyi$d;f()Z
-