Package net.minecraft.block.entity
Class SculkShriekerBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkShriekerBlockEntity
- All Implemented Interfaces:
VibrationListener.Callback
- Mappings:
Namespace Name official cxn
intermediary net/minecraft/class_7133
named net/minecraft/block/entity/SculkShriekerBlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final Logger
private static final int
private static final int
private VibrationListener
private static final int
private static final int
private static final int
private static final Int2ObjectMap<SoundEvent>
private int
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.private boolean
canWarn
(ServerWorld world) static @Nullable ServerPlayerEntity
getTag()
void
onListen()
private void
void
readNbt
(NbtCompound nbt) Reads data fromnbt
.private void
shriek
(ServerWorld world, @Nullable Entity entity) void
shriek
(ServerWorld world, @Nullable ServerPlayerEntity player) private boolean
trySpawnWarden
(ServerWorld world) private boolean
trySyncWarningLevel
(ServerWorld world, ServerPlayerEntity player) void
warn
(ServerWorld world) protected void
writeNbt
(NbtCompound nbt) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.event.listener.VibrationListener.Callback
canAccept, triggersAvoidCriterion
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lcxn;a:Lorg/slf4j/Logger;
intermediary field_38237
Lnet/minecraft/class_7133;field_38237:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;LOGGER:Lorg/slf4j/Logger;
-
RANGE
private static final int RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lcxn;b:I
intermediary field_38238
Lnet/minecraft/class_7133;field_38238:I
named RANGE
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;RANGE:I
-
field_38750
private static final int field_38750- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lcxn;c:I
intermediary field_38750
Lnet/minecraft/class_7133;field_38750:I
named field_38750
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38750:I
-
WARDEN_SPAWN_TRIES
private static final int WARDEN_SPAWN_TRIES- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lcxn;d:I
intermediary field_38751
Lnet/minecraft/class_7133;field_38751:I
named WARDEN_SPAWN_TRIES
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;WARDEN_SPAWN_TRIES:I
-
WARDEN_SPAWN_HORIZONTAL_RANGE
private static final int WARDEN_SPAWN_HORIZONTAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lcxn;e:I
intermediary field_38752
Lnet/minecraft/class_7133;field_38752:I
named WARDEN_SPAWN_HORIZONTAL_RANGE
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;WARDEN_SPAWN_HORIZONTAL_RANGE:I
-
WARDEN_SPAWN_VERTICAL_RANGE
private static final int WARDEN_SPAWN_VERTICAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lcxn;f:I
intermediary field_38753
Lnet/minecraft/class_7133;field_38753:I
named WARDEN_SPAWN_VERTICAL_RANGE
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;WARDEN_SPAWN_VERTICAL_RANGE:I
-
DARKNESS_RANGE
private static final int DARKNESS_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lcxn;g:I
intermediary field_38754
Lnet/minecraft/class_7133;field_38754:I
named DARKNESS_RANGE
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;DARKNESS_RANGE:I
-
WARNING_SOUNDS
- Mappings:
Namespace Name Mixin selector official h
Lcxn;h:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_38755
Lnet/minecraft/class_7133;field_38755:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named WARNING_SOUNDS
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;WARNING_SOUNDS:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
SHRIEK_DELAY
private static final int SHRIEK_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lcxn;i:I
intermediary field_38756
Lnet/minecraft/class_7133;field_38756:I
named SHRIEK_DELAY
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;SHRIEK_DELAY:I
-
warningLevel
private int warningLevel- Mappings:
Namespace Name Mixin selector official j
Lcxn;j:I
intermediary field_38757
Lnet/minecraft/class_7133;field_38757:I
named warningLevel
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;warningLevel:I
-
vibrationListener
- Mappings:
Namespace Name Mixin selector official k
Lcxn;k:Lddk;
intermediary field_38239
Lnet/minecraft/class_7133;field_38239:Lnet/minecraft/class_5718;
named vibrationListener
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;vibrationListener:Lnet/minecraft/world/event/listener/VibrationListener;
-
-
Constructor Details
-
SculkShriekerBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lcxn;<init>(Lgp;Lcyt;)V
intermediary <init>
Lnet/minecraft/class_7133;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
getVibrationListener
- Mappings:
Namespace Name Mixin selector official c
Lcxn;c()Lddk;
intermediary method_42325
Lnet/minecraft/class_7133;method_42325()Lnet/minecraft/class_5718;
named getVibrationListener
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;getVibrationListener()Lnet/minecraft/world/event/listener/VibrationListener;
-
readNbt
Reads data fromnbt
. 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 classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lcwl;a(Lqp;)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
Writes data tonbt
. 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 classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lcwl;b(Lqp;)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
-
getTag
- Specified by:
getTag
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Lddk$a;a()Lamr;
intermediary method_42210
Lnet/minecraft/class_5718$class_5719;method_42210()Lnet/minecraft/class_6862;
named getTag
Lnet/minecraft/world/event/listener/VibrationListener$Callback;getTag()Lnet/minecraft/registry/tag/TagKey;
-
accepts
public boolean accepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.- Specified by:
accepts
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Lddk$a;a(Lahm;Ldde;Lgp;Lddc;Lddc$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
-
findResponsiblePlayerFromEntity
@Nullable public static @Nullable ServerPlayerEntity findResponsiblePlayerFromEntity(@Nullable @Nullable Entity entity) - Mappings:
Namespace Name Mixin selector official a
Lcxn;a(Lbdr;)Lahn;
intermediary method_44018
Lnet/minecraft/class_7133;method_44018(Lnet/minecraft/class_1297;)Lnet/minecraft/class_3222;
named findResponsiblePlayerFromEntity
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;findResponsiblePlayerFromEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/server/network/ServerPlayerEntity;
-
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 interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Lddk$a;a(Lahm;Ldde;Lgp;Lddc;Lbdr;Lbdr;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
-
shriek
- Mappings:
Namespace Name Mixin selector official a
Lcxn;a(Lahm;Lahn;)V
intermediary method_43141
Lnet/minecraft/class_7133;method_43141(Lnet/minecraft/class_3218;Lnet/minecraft/class_3222;)V
named shriek
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;shriek(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
trySyncWarningLevel
- Mappings:
Namespace Name Mixin selector official b
Lcxn;b(Lahm;Lahn;)Z
intermediary method_43142
Lnet/minecraft/class_7133;method_43142(Lnet/minecraft/class_3218;Lnet/minecraft/class_3222;)Z
named trySyncWarningLevel
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;trySyncWarningLevel(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/network/ServerPlayerEntity;)Z
-
shriek
- Mappings:
Namespace Name Mixin selector official a
Lcxn;a(Lahm;Lbdr;)V
intermediary method_44017
Lnet/minecraft/class_7133;method_44017(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)V
named shriek
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;shriek(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)V
-
canWarn
- Mappings:
Namespace Name Mixin selector official b
Lcxn;b(Lahm;)Z
intermediary method_43150
Lnet/minecraft/class_7133;method_43150(Lnet/minecraft/class_3218;)Z
named canWarn
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;canWarn(Lnet/minecraft/server/world/ServerWorld;)Z
-
warn
- Mappings:
Namespace Name Mixin selector official a
Lcxn;a(Lahm;)V
intermediary method_43147
Lnet/minecraft/class_7133;method_43147(Lnet/minecraft/class_3218;)V
named warn
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;warn(Lnet/minecraft/server/world/ServerWorld;)V
-
playWarningSound
private void playWarningSound()- Mappings:
Namespace Name Mixin selector official d
Lcxn;d()V
intermediary method_43151
Lnet/minecraft/class_7133;method_43151()V
named playWarningSound
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;playWarningSound()V
-
trySpawnWarden
- Mappings:
Namespace Name Mixin selector official c
Lcxn;c(Lahm;)Z
intermediary method_43148
Lnet/minecraft/class_7133;method_43148(Lnet/minecraft/class_3218;)Z
named trySpawnWarden
Lnet/minecraft/block/entity/SculkShriekerBlockEntity;trySpawnWarden(Lnet/minecraft/server/world/ServerWorld;)Z
-
onListen
public void onListen()- Specified by:
onListen
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official f
Lddk$a;f()V
intermediary method_42672
Lnet/minecraft/class_5718$class_5719;method_42672()V
named onListen
Lnet/minecraft/world/event/listener/VibrationListener$Callback;onListen()V
-