Class SculkSensorBlockEntity.Callback

java.lang.Object
net.minecraft.block.entity.SculkSensorBlockEntity.Callback
All Implemented Interfaces:
VibrationListener.Callback
Direct Known Subclasses:
CalibratedSculkSensorBlockEntity.Callback
Enclosing class:
SculkSensorBlockEntity

public static class SculkSensorBlockEntity.Callback extends Object implements VibrationListener.Callback
Mappings:
Namespace Name
official dey$a
intermediary net/minecraft/class_5704$class_8241
named net/minecraft/block/entity/SculkSensorBlockEntity$Callback
  • Field Details

    • field_43292

      public static final int field_43292
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldey$a;a:I
      intermediary field_43292 Lnet/minecraft/class_5704$class_8241;field_43292:I
      named field_43292 Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;field_43292:I
    • blockEntity

      protected final SculkSensorBlockEntity blockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Ldey$a;b:Ldey;
      intermediary field_43293 Lnet/minecraft/class_5704$class_8241;field_43293:Lnet/minecraft/class_5704;
      named blockEntity Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;blockEntity:Lnet/minecraft/block/entity/SculkSensorBlockEntity;
  • Constructor Details

    • Callback

      public Callback(SculkSensorBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldey$a;<init>(Ldey;)V
      intermediary <init> Lnet/minecraft/class_5704$class_8241;<init>(Lnet/minecraft/class_5704;)V
      named <init> Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;<init>(Lnet/minecraft/block/entity/SculkSensorBlockEntity;)V
  • Method Details

    • triggersAvoidCriterion

      public boolean triggersAvoidCriterion()
      Specified by:
      triggersAvoidCriterion in interface VibrationListener.Callback
      Mappings:
      Namespace Name Mixin selector
      official w Ldkz$a;w()Z
      intermediary method_43695 Lnet/minecraft/class_5718$class_5719;method_43695()Z
      named triggersAvoidCriterion Lnet/minecraft/world/event/listener/VibrationListener$Callback;triggersAvoidCriterion()Z
    • accepts

      public boolean accepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable GameEvent.Emitter emitter)
      Returns whether the callback wants to accept this event.
      Specified by:
      accepts in interface VibrationListener.Callback
      Mappings:
      Namespace Name Mixin selector
      official a Ldkz$a;a(Laik;Ldkt;Lgt;Ldkr;Ldkr$a;)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_5712$class_7397;)Z
      named accepts Lnet/minecraft/world/event/listener/VibrationListener$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/world/event/GameEvent$Emitter;)Z
    • accept

      public void accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable @Nullable Entity entity, @Nullable @Nullable Entity sourceEntity, float distance)
      Accepts a game event after delay.
      Specified by:
      accept in interface VibrationListener.Callback
      Mappings:
      Namespace Name Mixin selector
      official a Ldkz$a;a(Laik;Ldkt;Lgt;Ldkr;Lbir;Lbir;F)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;F)V
      named accept Lnet/minecraft/world/event/listener/VibrationListener$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;F)V
    • onListen

      public void onListen()
      Specified by:
      onListen in interface VibrationListener.Callback
      Mappings:
      Namespace Name Mixin selector
      official c Ldkz$a;c()V
      intermediary method_42672 Lnet/minecraft/class_5718$class_5719;method_42672()V
      named onListen Lnet/minecraft/world/event/listener/VibrationListener$Callback;onListen()V
    • getRange

      public int getRange()
      Specified by:
      getRange in interface VibrationListener.Callback
      Mappings:
      Namespace Name Mixin selector
      official a Ldkz$a;a()I
      intermediary method_49797 Lnet/minecraft/class_5718$class_5719;method_49797()I
      named getRange Lnet/minecraft/world/event/listener/VibrationListener$Callback;getRange()I
    • getPower

      public static int getPower(float distance, int range)
      Mappings:
      Namespace Name Mixin selector
      official a Ldey$a;a(FI)I
      intermediary method_49833 Lnet/minecraft/class_5704$class_8241;method_49833(FI)I
      named getPower Lnet/minecraft/block/entity/SculkSensorBlockEntity$Callback;getPower(FI)I