Package net.minecraft.block.entity
Class SculkShriekerBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SculkShriekerBlockEntity
- All Implemented Interfaces:
class_8514,GameEventListener.class_8513<class_8514.class_8516>
public class SculkShriekerBlockEntity
extends BlockEntity
implements GameEventListener.class_8513<class_8514.class_8516>, class_8514
- Mappings:
Namespace Name official dajintermediary net/minecraft/class_7133named net/minecraft/block/entity/SculkShriekerBlockEntity
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.class_8514
class_8514.Callback, class_8514.class_8515, class_8514.class_8516, class_8514.class_8517 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final class_8514.Callbackprivate class_8514.class_8515private static final Loggerprivate static final intprivate final class_8514.class_8516private static final intprivate static final intprivate static final intprivate static final Int2ObjectMap<SoundEvent>private intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, worldFields inherited from interface net.minecraft.class_8514
field_44638, field_44639 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancanWarn(ServerWorld world) static @Nullable ServerPlayerEntityprivate voidplayWarningSound(World world) voidreadNbt(NbtCompound nbt) Reads data fromnbt.private voidshriek(ServerWorld world, @Nullable Entity entity) voidshriek(ServerWorld world, @Nullable ServerPlayerEntity player) private booleantrySpawnWarden(ServerWorld world) private booleantrySyncWarningLevel(ServerWorld world, ServerPlayerEntity player) voidwarn(ServerWorld world) protected voidwriteNbt(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
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLdaj;b:Lorg/slf4j/Logger;intermediary field_38237Lnet/minecraft/class_7133;field_38237:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/block/entity/SculkShriekerBlockEntity;LOGGER:Lorg/slf4j/Logger;
-
field_38750
private static final int field_38750- See Also:
- Mappings:
Namespace Name Mixin selector official cLdaj;c:Iintermediary field_38750Lnet/minecraft/class_7133;field_38750:Inamed field_38750Lnet/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 dLdaj;d:Iintermediary field_38751Lnet/minecraft/class_7133;field_38751:Inamed WARDEN_SPAWN_TRIESLnet/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 eLdaj;e:Iintermediary field_38752Lnet/minecraft/class_7133;field_38752:Inamed WARDEN_SPAWN_HORIZONTAL_RANGELnet/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 gLdaj;g:Iintermediary field_38753Lnet/minecraft/class_7133;field_38753:Inamed WARDEN_SPAWN_VERTICAL_RANGELnet/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 hLdaj;h:Iintermediary field_38754Lnet/minecraft/class_7133;field_38754:Inamed DARKNESS_RANGELnet/minecraft/block/entity/SculkShriekerBlockEntity;DARKNESS_RANGE:I
-
SHRIEK_DELAY
private static final int SHRIEK_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector official iLdaj;i:Iintermediary field_38756Lnet/minecraft/class_7133;field_38756:Inamed SHRIEK_DELAYLnet/minecraft/block/entity/SculkShriekerBlockEntity;SHRIEK_DELAY:I
-
WARNING_SOUNDS
- Mappings:
Namespace Name Mixin selector official jLdaj;j:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_38755Lnet/minecraft/class_7133;field_38755:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;named WARNING_SOUNDSLnet/minecraft/block/entity/SculkShriekerBlockEntity;WARNING_SOUNDS:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
warningLevel
private int warningLevel- Mappings:
Namespace Name Mixin selector official kLdaj;k:Iintermediary field_38757Lnet/minecraft/class_7133;field_38757:Inamed warningLevelLnet/minecraft/block/entity/SculkShriekerBlockEntity;warningLevel:I
-
field_44619
- Mappings:
Namespace Name Mixin selector official lLdaj;l:Ldgj$d;intermediary field_44619Lnet/minecraft/class_7133;field_44619:Lnet/minecraft/class_8514$class_5719;named field_44619Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_44619:Lnet/minecraft/class_8514$Callback;
-
field_44620
- Mappings:
Namespace Name Mixin selector official mLdaj;m:Ldgj$a;intermediary field_44620Lnet/minecraft/class_7133;field_44620:Lnet/minecraft/class_8514$class_8515;named field_44620Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_44620:Lnet/minecraft/class_8514$class_8515;
-
vibrationListener
- Mappings:
Namespace Name Mixin selector official nLdaj;n:Ldgj$b;intermediary field_38239Lnet/minecraft/class_7133;field_38239:Lnet/minecraft/class_8514$class_8516;named vibrationListenerLnet/minecraft/block/entity/SculkShriekerBlockEntity;vibrationListener:Lnet/minecraft/class_8514$class_8516;
-
-
Constructor Details
-
SculkShriekerBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Ldaj;<init>(Lgu;Ldbr;)Vintermediary <init>Lnet/minecraft/class_7133;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/SculkShriekerBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
method_51298
- Specified by:
method_51298in interfaceclass_8514- Mappings:
Namespace Name Mixin selector official fWLdgj;fW()Ldgj$a;intermediary method_51298Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;named method_51298Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;
-
method_51299
- Specified by:
method_51299in interfaceclass_8514- Mappings:
Namespace Name Mixin selector official fXLdgj;fX()Ldgj$d;intermediary method_51299Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$class_5719;named method_51299Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$Callback;
-
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.
nbtmight 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:
readNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLczd;a(Lqr;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/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:
writeNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLczd;b(Lqr;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
findResponsiblePlayerFromEntity
@Nullable public static @Nullable ServerPlayerEntity findResponsiblePlayerFromEntity(@Nullable @Nullable Entity entity) - Mappings:
Namespace Name Mixin selector official aLdaj;a(Lbfb;)Laie;intermediary method_44018Lnet/minecraft/class_7133;method_44018(Lnet/minecraft/class_1297;)Lnet/minecraft/class_3222;named findResponsiblePlayerFromEntityLnet/minecraft/block/entity/SculkShriekerBlockEntity;findResponsiblePlayerFromEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/server/network/ServerPlayerEntity;
-
shriek
- Mappings:
Namespace Name Mixin selector official aLdaj;a(Laid;Laie;)Vintermediary method_43141Lnet/minecraft/class_7133;method_43141(Lnet/minecraft/class_3218;Lnet/minecraft/class_3222;)Vnamed shriekLnet/minecraft/block/entity/SculkShriekerBlockEntity;shriek(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
trySyncWarningLevel
- Mappings:
Namespace Name Mixin selector official bLdaj;b(Laid;Laie;)Zintermediary method_43142Lnet/minecraft/class_7133;method_43142(Lnet/minecraft/class_3218;Lnet/minecraft/class_3222;)Znamed trySyncWarningLevelLnet/minecraft/block/entity/SculkShriekerBlockEntity;trySyncWarningLevel(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/network/ServerPlayerEntity;)Z
-
shriek
- Mappings:
Namespace Name Mixin selector official aLdaj;a(Laid;Lbfb;)Vintermediary method_44017Lnet/minecraft/class_7133;method_44017(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Vnamed shriekLnet/minecraft/block/entity/SculkShriekerBlockEntity;shriek(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)V
-
canWarn
- Mappings:
Namespace Name Mixin selector official bLdaj;b(Laid;)Zintermediary method_43150Lnet/minecraft/class_7133;method_43150(Lnet/minecraft/class_3218;)Znamed canWarnLnet/minecraft/block/entity/SculkShriekerBlockEntity;canWarn(Lnet/minecraft/server/world/ServerWorld;)Z
-
warn
- Mappings:
Namespace Name Mixin selector official aLdaj;a(Laid;)Vintermediary method_43147Lnet/minecraft/class_7133;method_43147(Lnet/minecraft/class_3218;)Vnamed warnLnet/minecraft/block/entity/SculkShriekerBlockEntity;warn(Lnet/minecraft/server/world/ServerWorld;)V
-
playWarningSound
- Mappings:
Namespace Name Mixin selector official bLdaj;b(Lcmd;)Vintermediary method_43151Lnet/minecraft/class_7133;method_43151(Lnet/minecraft/class_1937;)Vnamed playWarningSoundLnet/minecraft/block/entity/SculkShriekerBlockEntity;playWarningSound(Lnet/minecraft/world/World;)V
-
trySpawnWarden
- Mappings:
Namespace Name Mixin selector official cLdaj;c(Laid;)Zintermediary method_43148Lnet/minecraft/class_7133;method_43148(Lnet/minecraft/class_3218;)Znamed trySpawnWardenLnet/minecraft/block/entity/SculkShriekerBlockEntity;trySpawnWarden(Lnet/minecraft/server/world/ServerWorld;)Z
-
method_51358
- Specified by:
method_51358in interfaceGameEventListener.class_8513<class_8514.class_8516>- Mappings:
Namespace Name Mixin selector official cLdaj;c()Ldgj$b;intermediary method_42325Lnet/minecraft/class_7133;method_42325()Lnet/minecraft/class_8514$class_8516;named method_51358Lnet/minecraft/block/entity/SculkShriekerBlockEntity;method_51358()Lnet/minecraft/class_8514$class_8516;
-