Class SculkSensorBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkSensorBlockEntity
All Implemented Interfaces:
GameEventListener.Holder<Vibrations.VibrationListener>, Vibrations
Direct Known Subclasses:
CalibratedSculkSensorBlockEntity

public class SculkSensorBlockEntity extends BlockEntity implements GameEventListener.Holder<Vibrations.VibrationListener>, Vibrations
Mappings:
Namespace Name
official dib
intermediary net/minecraft/class_5704
named net/minecraft/block/entity/SculkSensorBlockEntity
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Ldib;b:Lorg/slf4j/Logger;
      intermediary field_38236 Lnet/minecraft/class_5704;field_38236:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/block/entity/SculkSensorBlockEntity;LOGGER:Lorg/slf4j/Logger;
    • listenerData

      private Vibrations.ListenerData listenerData
      Mappings:
      Namespace Name Mixin selector
      official c Ldib;c:Ldoa$a;
      intermediary field_44615 Lnet/minecraft/class_5704;field_44615:Lnet/minecraft/class_8514$class_8515;
      named listenerData Lnet/minecraft/block/entity/SculkSensorBlockEntity;listenerData:Lnet/minecraft/world/event/Vibrations$ListenerData;
    • listener

      private final Vibrations.VibrationListener listener
      Mappings:
      Namespace Name Mixin selector
      official d Ldib;d:Ldoa$b;
      intermediary field_28118 Lnet/minecraft/class_5704;field_28118:Lnet/minecraft/class_8514$class_8516;
      named listener Lnet/minecraft/block/entity/SculkSensorBlockEntity;listener:Lnet/minecraft/world/event/Vibrations$VibrationListener;
    • callback

      private final Vibrations.Callback callback
      Mappings:
      Namespace Name Mixin selector
      official e Ldib;e:Ldoa$d;
      intermediary field_43291 Lnet/minecraft/class_5704;field_43291:Lnet/minecraft/class_8514$class_5719;
      named callback Lnet/minecraft/block/entity/SculkSensorBlockEntity;callback:Lnet/minecraft/world/event/Vibrations$Callback;
    • lastVibrationFrequency

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

    • SculkSensorBlockEntity

      protected SculkSensorBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldgv;<init>(Ldgx;Lhx;Ldjh;)V
      intermediary <init> Lnet/minecraft/class_2586;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named <init> Lnet/minecraft/block/entity/BlockEntity;<init>(Lnet/minecraft/block/entity/BlockEntityType;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • SculkSensorBlockEntity

      public SculkSensorBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldib;<init>(Lhx;Ldjh;)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

    • createCallback

      public Vibrations.Callback createCallback()
      Mappings:
      Namespace Name Mixin selector
      official c Ldib;c()Ldoa$d;
      intermediary method_49831 Lnet/minecraft/class_5704;method_49831()Lnet/minecraft/class_8514$class_5719;
      named createCallback Lnet/minecraft/block/entity/SculkSensorBlockEntity;createCallback()Lnet/minecraft/world/event/Vibrations$Callback;
    • readNbt

      public void readNbt(NbtCompound nbt)
      Reads data from nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldgv;a(Lsn;)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)
      Writes data to nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      Overrides:
      writeNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldgv;b(Lsn;)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
    • getVibrationListenerData

      public Vibrations.ListenerData getVibrationListenerData()
      Specified by:
      getVibrationListenerData in interface Vibrations
      Mappings:
      Namespace Name Mixin selector
      official gg Ldoa;gg()Ldoa$a;
      intermediary method_51298 Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;
      named getVibrationListenerData Lnet/minecraft/world/event/Vibrations;getVibrationListenerData()Lnet/minecraft/world/event/Vibrations$ListenerData;
    • getVibrationCallback

      public Vibrations.Callback getVibrationCallback()
      Specified by:
      getVibrationCallback in interface Vibrations
      Mappings:
      Namespace Name Mixin selector
      official gh Ldoa;gh()Ldoa$d;
      intermediary method_51299 Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$class_5719;
      named getVibrationCallback Lnet/minecraft/world/event/Vibrations;getVibrationCallback()Lnet/minecraft/world/event/Vibrations$Callback;
    • getLastVibrationFrequency

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

      public void setLastVibrationFrequency(int lastVibrationFrequency)
      Mappings:
      Namespace Name Mixin selector
      official a Ldib;a(I)V
      intermediary method_44213 Lnet/minecraft/class_5704;method_44213(I)V
      named setLastVibrationFrequency Lnet/minecraft/block/entity/SculkSensorBlockEntity;setLastVibrationFrequency(I)V
    • getEventListener

      public Vibrations.VibrationListener getEventListener()
      Specified by:
      getEventListener in interface GameEventListener.Holder<Vibrations.VibrationListener>
      Mappings:
      Namespace Name Mixin selector
      official g Ldib;g()Ldoa$b;
      intermediary method_32911 Lnet/minecraft/class_5704;method_32911()Lnet/minecraft/class_8514$class_8516;
      named getEventListener Lnet/minecraft/block/entity/SculkSensorBlockEntity;getEventListener()Lnet/minecraft/world/event/Vibrations$VibrationListener;