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
official dea$a
intermediary net/minecraft/class_5704$class_8241
named net/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallback
  • Field Details

    • RANGE

      public static final int RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldea$a;b:I
      intermediary field_43292 Lnet/minecraft/class_5704$class_8241;field_43292:I
      named RANGE Lnet/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallback;RANGE:I
    • pos

      protected final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official c Ldea$a;c:Lgw;
      intermediary field_44617 Lnet/minecraft/class_5704$class_8241;field_44617:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallback;pos:Lnet/minecraft/util/math/BlockPos;
    • positionSource

      private final PositionSource positionSource
      Mappings:
      Namespace Name Mixin selector
      official a Ldea$a;a:Ldjx;
      intermediary field_44616 Lnet/minecraft/class_5704$class_8241;field_44616:Lnet/minecraft/class_5716;
      named positionSource Lnet/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallback;positionSource:Lnet/minecraft/world/event/PositionSource;
  • Constructor Details

    • VibrationCallback

      public VibrationCallback(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldea$a;<init>(Ldea;Lgw;)V
      intermediary <init> Lnet/minecraft/class_5704$class_8241;<init>(Lnet/minecraft/class_5704;Lnet/minecraft/class_2338;)V
      named <init> Lnet/minecraft/block/entity/SculkSensorBlockEntity$VibrationCallback;<init>(Lnet/minecraft/block/entity/SculkSensorBlockEntity;Lnet/minecraft/util/math/BlockPos;)V
  • Method Details

    • getRange

      public int getRange()
      Specified by:
      getRange in interface Vibrations.Callback
      Mappings:
      Namespace Name Mixin selector
      official a Ldkc$d;a()I
      intermediary method_49797 Lnet/minecraft/class_8514$class_5719;method_49797()I
      named getRange Lnet/minecraft/world/event/Vibrations$Callback;getRange()I
    • getPositionSource

      public PositionSource getPositionSource()
      Specified by:
      getPositionSource in interface Vibrations.Callback
      Mappings:
      Namespace Name Mixin selector
      official b Ldkc$d;b()Ldjx;
      intermediary method_51300 Lnet/minecraft/class_8514$class_5719;method_51300()Lnet/minecraft/class_5716;
      named getPositionSource Lnet/minecraft/world/event/Vibrations$Callback;getPositionSource()Lnet/minecraft/world/event/PositionSource;
    • triggersAvoidCriterion

      public boolean triggersAvoidCriterion()
      Specified by:
      triggersAvoidCriterion in interface Vibrations.Callback
      Mappings:
      Namespace Name Mixin selector
      official d Ldkc$d;d()Z
      intermediary method_43695 Lnet/minecraft/class_8514$class_5719;method_43695()Z
      named triggersAvoidCriterion Lnet/minecraft/world/event/Vibrations$Callback;triggersAvoidCriterion()Z
    • accepts

      public boolean accepts(ServerWorld world, BlockPos pos, GameEvent event, @Nullable GameEvent.Emitter emitter)
      Returns whether the callback wants to accept this event.
      Specified by:
      accepts in interface Vibrations.Callback
      Mappings:
      Namespace Name Mixin selector
      official a Ldkc$d;a(Lakq;Lgw;Ldjt;Ldjt$a;)Z
      intermediary method_32970 Lnet/minecraft/class_8514$class_5719;method_32970(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;)Z
      named accepts Lnet/minecraft/world/event/Vibrations$Callback;accepts(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;)Z
    • accept

      public void accept(ServerWorld world, BlockPos pos, GameEvent event, @Nullable @Nullable Entity sourceEntity, @Nullable @Nullable Entity entity, float distance)
      Accepts a game event after delay.
      Specified by:
      accept in interface Vibrations.Callback
      Mappings:
      Namespace Name Mixin selector
      official a Ldkc$d;a(Lakq;Lgw;Ldjt;Lbiq;Lbiq;F)V
      intermediary method_32969 Lnet/minecraft/class_8514$class_5719;method_32969(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;F)V
      named accept Lnet/minecraft/world/event/Vibrations$Callback;accept(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;F)V
    • onListen

      public void onListen()
      Specified by:
      onListen in interface Vibrations.Callback
      Mappings:
      Namespace Name Mixin selector
      official e Ldkc$d;e()V
      intermediary method_42672 Lnet/minecraft/class_8514$class_5719;method_42672()V
      named onListen Lnet/minecraft/world/event/Vibrations$Callback;onListen()V
    • requiresTickingChunksAround

      public boolean requiresTickingChunksAround()
      Specified by:
      requiresTickingChunksAround in interface Vibrations.Callback
      Mappings:
      Namespace Name Mixin selector
      official f Ldkc$d;f()Z
      intermediary method_51363 Lnet/minecraft/class_8514$class_5719;method_51363()Z
      named requiresTickingChunksAround Lnet/minecraft/world/event/Vibrations$Callback;requiresTickingChunksAround()Z