Class SculkSensorBlockEntity

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

public class SculkSensorBlockEntity
extends BlockEntity
implements SculkSensorListener.Listener
Mappings:
Namespace Name
official cgp
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 Lcgp;a:Lcma;
      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 Lcgp;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> Lcgp;<init>(Lfx;Lcht;)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

    • fromTag

      public void fromTag​(CompoundTag tag)
      Overrides:
      fromTag in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcfr;a(Lmq;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
      named fromTag Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
    • toTag

      public CompoundTag toTag​(CompoundTag tag)
      Overrides:
      toTag in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lcfr;b(Lmq;)Lmq;
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
      named toTag Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
    • getEventListener

      public SculkSensorListener getEventListener()
      Mappings:
      Namespace Name Mixin selector
      official d Lcgp;d()Lcma;
      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 f Lcgp;f()I
      intermediary method_32912 Lnet/minecraft/class_5704;method_32912()I
      named getLastVibrationFrequency Lnet/minecraft/block/entity/SculkSensorBlockEntity;getLastVibrationFrequency()I
    • shouldListen

      public boolean shouldListen​(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity)
      Specified by:
      shouldListen in interface SculkSensorListener.Listener
      Mappings:
      Namespace Name Mixin selector
      official a Lcma$a;a(Lbtv;Lclv;Lfx;Lclt;Laqv;)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 shouldListen Lnet/minecraft/world/event/listener/SculkSensorListener$Listener;shouldListen(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
    • listen

      public void listen​(World world, GameEventListener listener, GameEvent event, int int2)
      Specified by:
      listen in interface SculkSensorListener.Listener
      Mappings:
      Namespace Name Mixin selector
      official a Lcma$a;a(Lbtv;Lclv;Lclt;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 listen Lnet/minecraft/world/event/listener/SculkSensorListener$Listener;listen(Lnet/minecraft/world/World;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/world/event/GameEvent;I)V
    • method_32910

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