Class SculkSensorBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkSensorBlockEntity
All Implemented Interfaces:
SculkSensorListener.Callback

public class SculkSensorBlockEntity extends BlockEntity implements SculkSensorListener.Callback
Mappings:
Namespace Name
official cmq
intermediary net/minecraft/class_5704
named net/minecraft/block/entity/SculkSensorBlockEntity
  • Field Details

    • listener

      private final SculkSensorListener listener
      Mappings:
      Namespace Name Mixin selector
      official a Lcmq;a:Lcsf;
      intermediary field_28118 Lnet/minecraft/class_5704;field_28118:Lnet/minecraft/class_5718;
      named listener Lnet/minecraft/block/entity/SculkSensorBlockEntity;listener:Lnet/minecraft/world/event/listener/SculkSensorListener;
    • lastVibrationFrequency

      private int lastVibrationFrequency
      Mappings:
      Namespace Name Mixin selector
      official b Lcmq;b:I
      intermediary field_28119 Lnet/minecraft/class_5704;field_28119:I
      named lastVibrationFrequency Lnet/minecraft/block/entity/SculkSensorBlockEntity;lastVibrationFrequency:I
  • Constructor Details

    • SculkSensorBlockEntity

      public SculkSensorBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcmq;<init>(Lgh;Lcnv;)V
      intermediary <init> Lnet/minecraft/class_5704;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named <init> Lnet/minecraft/block/entity/SculkSensorBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
  • Method Details

    • readNbt

      public void readNbt(NbtCompound nbt)
      Overrides:
      readNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcls;a(Lob;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeNbt

      protected void writeNbt(NbtCompound nbt)
      Overrides:
      writeNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lcls;b(Lob;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • getEventListener

      public SculkSensorListener getEventListener()
      Mappings:
      Namespace Name Mixin selector
      official c Lcmq;c()Lcsf;
      intermediary method_32911 Lnet/minecraft/class_5704;method_32911()Lnet/minecraft/class_5718;
      named getEventListener Lnet/minecraft/block/entity/SculkSensorBlockEntity;getEventListener()Lnet/minecraft/world/event/listener/SculkSensorListener;
    • getLastVibrationFrequency

      public int getLastVibrationFrequency()
      Mappings:
      Namespace Name Mixin selector
      official d Lcmq;d()I
      intermediary method_32912 Lnet/minecraft/class_5704;method_32912()I
      named getLastVibrationFrequency Lnet/minecraft/block/entity/SculkSensorBlockEntity;getLastVibrationFrequency()I
    • accepts

      public boolean accepts(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable @Nullable Entity entity)
      Returns whether the callback wants to accept this event.
      Specified by:
      accepts in interface SculkSensorListener.Callback
      Mappings:
      Namespace Name Mixin selector
      official a Lcsf$a;a(Lbzw;Lcsa;Lgh;Lcry;Lawm;)Z
      intermediary method_32970 Lnet/minecraft/class_5718$class_5719;method_32970(Lnet/minecraft/class_1937;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/world/World;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;)Z
    • accept

      public void accept(World world, GameEventListener listener, GameEvent event, int distance)
      Accepts a game event after delay.
      Specified by:
      accept in interface SculkSensorListener.Callback
      Mappings:
      Namespace Name Mixin selector
      official a Lcsf$a;a(Lbzw;Lcsa;Lcry;I)V
      intermediary method_32969 Lnet/minecraft/class_5718$class_5719;method_32969(Lnet/minecraft/class_1937;Lnet/minecraft/class_5714;Lnet/minecraft/class_5712;I)V
      named accept Lnet/minecraft/world/event/listener/SculkSensorListener$Callback;accept(Lnet/minecraft/world/World;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/world/event/GameEvent;I)V
    • getPower

      public static int getPower(int distance, int range)
      Mappings:
      Namespace Name Mixin selector
      official b Lcmq;b(II)I
      intermediary method_32910 Lnet/minecraft/class_5704;method_32910(II)I
      named getPower Lnet/minecraft/block/entity/SculkSensorBlockEntity;getPower(II)I