Class SculkShriekerBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkShriekerBlockEntity
All Implemented Interfaces:
GameEventListener.Holder<Vibrations.VibrationListener>, Vibrations

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/block/entity/SculkShriekerBlockEntity;LOGGER:Lorg/slf4j/Logger;
      intermediary field_38237 Lnet/minecraft/class_7133;field_38237:Lorg/slf4j/Logger;
      official b Ldqz;b:Lorg/slf4j/Logger;
    • field_38750

      private static final int field_38750
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_38750 Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38750:I
      intermediary field_38750 Lnet/minecraft/class_7133;field_38750:I
      official c Ldqz;c:I
    • WARDEN_SPAWN_TRIES

      private static final int WARDEN_SPAWN_TRIES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WARDEN_SPAWN_TRIES Lnet/minecraft/block/entity/SculkShriekerBlockEntity;WARDEN_SPAWN_TRIES:I
      intermediary field_38751 Lnet/minecraft/class_7133;field_38751:I
      official d Ldqz;d:I
    • WARDEN_SPAWN_HORIZONTAL_RANGE

      private static final int WARDEN_SPAWN_HORIZONTAL_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WARDEN_SPAWN_HORIZONTAL_RANGE Lnet/minecraft/block/entity/SculkShriekerBlockEntity;WARDEN_SPAWN_HORIZONTAL_RANGE:I
      intermediary field_38752 Lnet/minecraft/class_7133;field_38752:I
      official e Ldqz;e:I
    • WARDEN_SPAWN_VERTICAL_RANGE

      private static final int WARDEN_SPAWN_VERTICAL_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WARDEN_SPAWN_VERTICAL_RANGE Lnet/minecraft/block/entity/SculkShriekerBlockEntity;WARDEN_SPAWN_VERTICAL_RANGE:I
      intermediary field_38753 Lnet/minecraft/class_7133;field_38753:I
      official h Ldqz;h:I
    • DARKNESS_RANGE

      private static final int DARKNESS_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DARKNESS_RANGE Lnet/minecraft/block/entity/SculkShriekerBlockEntity;DARKNESS_RANGE:I
      intermediary field_38754 Lnet/minecraft/class_7133;field_38754:I
      official i Ldqz;i:I
    • SHRIEK_DELAY

      private static final int SHRIEK_DELAY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SHRIEK_DELAY Lnet/minecraft/block/entity/SculkShriekerBlockEntity;SHRIEK_DELAY:I
      intermediary field_38756 Lnet/minecraft/class_7133;field_38756:I
      official j Ldqz;j:I
    • WARNING_SOUNDS

      private static final Int2ObjectMap<SoundEvent> WARNING_SOUNDS
      Mappings:
      Namespace Name Mixin selector
      named WARNING_SOUNDS Lnet/minecraft/block/entity/SculkShriekerBlockEntity;WARNING_SOUNDS:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_38755 Lnet/minecraft/class_7133;field_38755:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official k Ldqz;k:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • warningLevel

      private int warningLevel
      Mappings:
      Namespace Name Mixin selector
      named warningLevel Lnet/minecraft/block/entity/SculkShriekerBlockEntity;warningLevel:I
      intermediary field_38757 Lnet/minecraft/class_7133;field_38757:I
      official l Ldqz;l:I
    • vibrationCallback

      private final Vibrations.Callback vibrationCallback
      Mappings:
      Namespace Name Mixin selector
      named vibrationCallback Lnet/minecraft/block/entity/SculkShriekerBlockEntity;vibrationCallback:Lnet/minecraft/world/event/Vibrations$Callback;
      intermediary field_44619 Lnet/minecraft/class_7133;field_44619:Lnet/minecraft/class_8514$class_5719;
      official m Ldqz;m:Ldxq$d;
    • vibrationListenerData

      private Vibrations.ListenerData vibrationListenerData
      Mappings:
      Namespace Name Mixin selector
      named vibrationListenerData Lnet/minecraft/block/entity/SculkShriekerBlockEntity;vibrationListenerData:Lnet/minecraft/world/event/Vibrations$ListenerData;
      intermediary field_44620 Lnet/minecraft/class_7133;field_44620:Lnet/minecraft/class_8514$class_8515;
      official q Ldqz;q:Ldxq$a;
    • vibrationListener

      private final Vibrations.VibrationListener vibrationListener
      Mappings:
      Namespace Name Mixin selector
      named vibrationListener Lnet/minecraft/block/entity/SculkShriekerBlockEntity;vibrationListener:Lnet/minecraft/world/event/Vibrations$VibrationListener;
      intermediary field_38239 Lnet/minecraft/class_7133;field_38239:Lnet/minecraft/class_8514$class_8516;
      official r Ldqz;r:Ldxq$b;
  • Constructor Details

    • SculkShriekerBlockEntity

      public SculkShriekerBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/SculkShriekerBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_7133;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official <init> Ldqz;<init>(Lja;Ldsl;)V
  • Method Details

    • getVibrationListenerData

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

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

      protected void readNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup)
      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
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official a Ldpq;a(Ltx;Ljl$a;)V
    • writeNbt

      protected void writeNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup)
      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
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official b Ldpq;b(Ltx;Ljl$a;)V
    • findResponsiblePlayerFromEntity

      @Nullable public static @Nullable ServerPlayerEntity findResponsiblePlayerFromEntity(@Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named findResponsiblePlayerFromEntity Lnet/minecraft/block/entity/SculkShriekerBlockEntity;findResponsiblePlayerFromEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/server/network/ServerPlayerEntity;
      intermediary method_44018 Lnet/minecraft/class_7133;method_44018(Lnet/minecraft/class_1297;)Lnet/minecraft/class_3222;
      official a Ldqz;a(Lbsh;)Laqn;
    • shriek

      public void shriek(ServerWorld world, @Nullable @Nullable ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named shriek Lnet/minecraft/block/entity/SculkShriekerBlockEntity;shriek(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/network/ServerPlayerEntity;)V
      intermediary method_43141 Lnet/minecraft/class_7133;method_43141(Lnet/minecraft/class_3218;Lnet/minecraft/class_3222;)V
      official a Ldqz;a(Laqm;Laqn;)V
    • trySyncWarningLevel

      private boolean trySyncWarningLevel(ServerWorld world, ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named trySyncWarningLevel Lnet/minecraft/block/entity/SculkShriekerBlockEntity;trySyncWarningLevel(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/network/ServerPlayerEntity;)Z
      intermediary method_43142 Lnet/minecraft/class_7133;method_43142(Lnet/minecraft/class_3218;Lnet/minecraft/class_3222;)Z
      official b Ldqz;b(Laqm;Laqn;)Z
    • shriek

      private void shriek(ServerWorld world, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named shriek Lnet/minecraft/block/entity/SculkShriekerBlockEntity;shriek(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)V
      intermediary method_44017 Lnet/minecraft/class_7133;method_44017(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)V
      official a Ldqz;a(Laqm;Lbsh;)V
    • canWarn

      private boolean canWarn(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named canWarn Lnet/minecraft/block/entity/SculkShriekerBlockEntity;canWarn(Lnet/minecraft/server/world/ServerWorld;)Z
      intermediary method_43150 Lnet/minecraft/class_7133;method_43150(Lnet/minecraft/class_3218;)Z
      official b Ldqz;b(Laqm;)Z
    • warn

      public void warn(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named warn Lnet/minecraft/block/entity/SculkShriekerBlockEntity;warn(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_43147 Lnet/minecraft/class_7133;method_43147(Lnet/minecraft/class_3218;)V
      official a Ldqz;a(Laqm;)V
    • playWarningSound

      private void playWarningSound(World world)
      Mappings:
      Namespace Name Mixin selector
      named playWarningSound Lnet/minecraft/block/entity/SculkShriekerBlockEntity;playWarningSound(Lnet/minecraft/world/World;)V
      intermediary method_43151 Lnet/minecraft/class_7133;method_43151(Lnet/minecraft/class_1937;)V
      official b Ldqz;b(Ldcg;)V
    • trySpawnWarden

      private boolean trySpawnWarden(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named trySpawnWarden Lnet/minecraft/block/entity/SculkShriekerBlockEntity;trySpawnWarden(Lnet/minecraft/server/world/ServerWorld;)Z
      intermediary method_43148 Lnet/minecraft/class_7133;method_43148(Lnet/minecraft/class_3218;)Z
      official c Ldqz;c(Laqm;)Z
    • getEventListener

      public Vibrations.VibrationListener getEventListener()
      Specified by:
      getEventListener in interface GameEventListener.Holder<Vibrations.VibrationListener>
      Mappings:
      Namespace Name Mixin selector
      named getEventListener Lnet/minecraft/block/entity/SculkShriekerBlockEntity;getEventListener()Lnet/minecraft/world/event/Vibrations$VibrationListener;
      intermediary method_42325 Lnet/minecraft/class_7133;method_42325()Lnet/minecraft/class_8514$class_8516;
      official b Ldqz;b()Ldxq$b;