Package net.minecraft.block.entity
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/SculkShriekerBlockEntityintermediary net/minecraft/class_7133official eaa
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.world.event.Vibrations
Vibrations.Callback, Vibrations.ListenerData, Vibrations.Ticker, Vibrations.VibrationListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate final Vibrations.Callbackprivate final Vibrations.VibrationListenerprivate Vibrations.ListenerDataprivate 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.world.event.Vibrations
DEFAULT_FREQUENCY, FREQUENCIES, RESONATIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancanWarn(ServerWorld world) static @Nullable ServerPlayerEntityvoidonBlockReplaced(BlockPos pos, BlockState oldState) private voidplayWarningSound(World world) protected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) 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, RegistryWrapper.WrapperLookup registries) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, removeFromCopiedStackNbt, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeIdToNbt
-
Field Details
-
field_38750
private static final int field_38750- See Also:
- Mappings:
Namespace Name Mixin selector named field_38750Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38750:Iintermediary field_38750Lnet/minecraft/class_7133;field_38750:Iofficial aLeaa;a:I
-
WARDEN_SPAWN_TRIES
private static final int WARDEN_SPAWN_TRIES- See Also:
- Mappings:
Namespace Name Mixin selector named WARDEN_SPAWN_TRIESLnet/minecraft/block/entity/SculkShriekerBlockEntity;WARDEN_SPAWN_TRIES:Iintermediary field_38751Lnet/minecraft/class_7133;field_38751:Iofficial bLeaa;b:I
-
WARDEN_SPAWN_HORIZONTAL_RANGE
private static final int WARDEN_SPAWN_HORIZONTAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named WARDEN_SPAWN_HORIZONTAL_RANGELnet/minecraft/block/entity/SculkShriekerBlockEntity;WARDEN_SPAWN_HORIZONTAL_RANGE:Iintermediary field_38752Lnet/minecraft/class_7133;field_38752:Iofficial cLeaa;c:I
-
WARDEN_SPAWN_VERTICAL_RANGE
private static final int WARDEN_SPAWN_VERTICAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named WARDEN_SPAWN_VERTICAL_RANGELnet/minecraft/block/entity/SculkShriekerBlockEntity;WARDEN_SPAWN_VERTICAL_RANGE:Iintermediary field_38753Lnet/minecraft/class_7133;field_38753:Iofficial dLeaa;d:I
-
DARKNESS_RANGE
private static final int DARKNESS_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named DARKNESS_RANGELnet/minecraft/block/entity/SculkShriekerBlockEntity;DARKNESS_RANGE:Iintermediary field_38754Lnet/minecraft/class_7133;field_38754:Iofficial eLeaa;e:I
-
SHRIEK_DELAY
private static final int SHRIEK_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector named SHRIEK_DELAYLnet/minecraft/block/entity/SculkShriekerBlockEntity;SHRIEK_DELAY:Iintermediary field_38756Lnet/minecraft/class_7133;field_38756:Iofficial fLeaa;f:I
-
WARNING_SOUNDS
- Mappings:
Namespace Name Mixin selector named WARNING_SOUNDSLnet/minecraft/block/entity/SculkShriekerBlockEntity;WARNING_SOUNDS:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_38755Lnet/minecraft/class_7133;field_38755:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;official jLeaa;j:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
DEFAULT_WARNING_LEVEL
private static final int DEFAULT_WARNING_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_WARNING_LEVELLnet/minecraft/block/entity/SculkShriekerBlockEntity;DEFAULT_WARNING_LEVEL:Iintermediary field_57785Lnet/minecraft/class_7133;field_57785:Iofficial kLeaa;k:I
-
warningLevel
private int warningLevel- Mappings:
Namespace Name Mixin selector named warningLevelLnet/minecraft/block/entity/SculkShriekerBlockEntity;warningLevel:Iintermediary field_38757Lnet/minecraft/class_7133;field_38757:Iofficial lLeaa;l:I
-
vibrationCallback
- Mappings:
Namespace Name Mixin selector named vibrationCallbackLnet/minecraft/block/entity/SculkShriekerBlockEntity;vibrationCallback:Lnet/minecraft/world/event/Vibrations$Callback;intermediary field_44619Lnet/minecraft/class_7133;field_44619:Lnet/minecraft/class_8514$class_5719;official mLeaa;m:Legz$d;
-
vibrationListenerData
- Mappings:
Namespace Name Mixin selector named vibrationListenerDataLnet/minecraft/block/entity/SculkShriekerBlockEntity;vibrationListenerData:Lnet/minecraft/world/event/Vibrations$ListenerData;intermediary field_44620Lnet/minecraft/class_7133;field_44620:Lnet/minecraft/class_8514$class_8515;official qLeaa;q:Legz$a;
-
vibrationListener
- Mappings:
Namespace Name Mixin selector named vibrationListenerLnet/minecraft/block/entity/SculkShriekerBlockEntity;vibrationListener:Lnet/minecraft/world/event/Vibrations$VibrationListener;intermediary field_38239Lnet/minecraft/class_7133;field_38239:Lnet/minecraft/class_8514$class_8516;official rLeaa;r:Legz$b;
-
-
Constructor Details
-
SculkShriekerBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/SculkShriekerBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_7133;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Leaa;<init>(Liw;Lebq;)V
-
-
Method Details
-
getVibrationListenerData
- Specified by:
getVibrationListenerDatain interfaceVibrations- Mappings:
Namespace Name Mixin selector named getVibrationListenerDataLnet/minecraft/world/event/Vibrations;getVibrationListenerData()Lnet/minecraft/world/event/Vibrations$ListenerData;intermediary method_51298Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;official gwLegz;gw()Legz$a;
-
getVibrationCallback
- Specified by:
getVibrationCallbackin interfaceVibrations- Mappings:
Namespace Name Mixin selector named getVibrationCallbackLnet/minecraft/world/event/Vibrations;getVibrationCallback()Lnet/minecraft/world/event/Vibrations$Callback;intermediary method_51299Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$class_5719;official gxLegz;gx()Legz$d;
-
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 named readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial aLdyo;a(Lua;Lji$a;)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 named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLdyo;b(Lua;Lji$a;)V
-
findResponsiblePlayerFromEntity
@Nullable public static @Nullable ServerPlayerEntity findResponsiblePlayerFromEntity(@Nullable @Nullable Entity entity) - Mappings:
Namespace Name Mixin selector named findResponsiblePlayerFromEntityLnet/minecraft/block/entity/SculkShriekerBlockEntity;findResponsiblePlayerFromEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/server/network/ServerPlayerEntity;intermediary method_44018Lnet/minecraft/class_7133;method_44018(Lnet/minecraft/class_1297;)Lnet/minecraft/class_3222;official aLeaa;a(Lbxe;)Lasc;
-
shriek
- Mappings:
Namespace Name Mixin selector named shriekLnet/minecraft/block/entity/SculkShriekerBlockEntity;shriek(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/network/ServerPlayerEntity;)Vintermediary method_43141Lnet/minecraft/class_7133;method_43141(Lnet/minecraft/class_3218;Lnet/minecraft/class_3222;)Vofficial aLeaa;a(Lasb;Lasc;)V
-
trySyncWarningLevel
- Mappings:
Namespace Name Mixin selector named trySyncWarningLevelLnet/minecraft/block/entity/SculkShriekerBlockEntity;trySyncWarningLevel(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/network/ServerPlayerEntity;)Zintermediary method_43142Lnet/minecraft/class_7133;method_43142(Lnet/minecraft/class_3218;Lnet/minecraft/class_3222;)Zofficial bLeaa;b(Lasb;Lasc;)Z
-
shriek
- Mappings:
Namespace Name Mixin selector named shriekLnet/minecraft/block/entity/SculkShriekerBlockEntity;shriek(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Vintermediary method_44017Lnet/minecraft/class_7133;method_44017(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Vofficial aLeaa;a(Lasb;Lbxe;)V
-
canWarn
- Mappings:
Namespace Name Mixin selector named canWarnLnet/minecraft/block/entity/SculkShriekerBlockEntity;canWarn(Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_43150Lnet/minecraft/class_7133;method_43150(Lnet/minecraft/class_3218;)Zofficial bLeaa;b(Lasb;)Z
-
onBlockReplaced
- Overrides:
onBlockReplacedin classBlockEntity- Mappings:
Namespace Name Mixin selector named onBlockReplacedLnet/minecraft/block/entity/BlockEntity;onBlockReplaced(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_66473Lnet/minecraft/class_2586;method_66473(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLdyo;a(Liw;Lebq;)V
-
warn
- Mappings:
Namespace Name Mixin selector named warnLnet/minecraft/block/entity/SculkShriekerBlockEntity;warn(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_43147Lnet/minecraft/class_7133;method_43147(Lnet/minecraft/class_3218;)Vofficial aLeaa;a(Lasb;)V
-
playWarningSound
- Mappings:
Namespace Name Mixin selector named playWarningSoundLnet/minecraft/block/entity/SculkShriekerBlockEntity;playWarningSound(Lnet/minecraft/world/World;)Vintermediary method_43151Lnet/minecraft/class_7133;method_43151(Lnet/minecraft/class_1937;)Vofficial bLeaa;b(Ldkj;)V
-
trySpawnWarden
- Mappings:
Namespace Name Mixin selector named trySpawnWardenLnet/minecraft/block/entity/SculkShriekerBlockEntity;trySpawnWarden(Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_43148Lnet/minecraft/class_7133;method_43148(Lnet/minecraft/class_3218;)Zofficial cLeaa;c(Lasb;)Z
-
getEventListener
- Specified by:
getEventListenerin interfaceGameEventListener.Holder<Vibrations.VibrationListener>- Mappings:
Namespace Name Mixin selector named getEventListenerLnet/minecraft/block/entity/SculkShriekerBlockEntity;getEventListener()Lnet/minecraft/world/event/Vibrations$VibrationListener;intermediary method_42325Lnet/minecraft/class_7133;method_42325()Lnet/minecraft/class_8514$class_8516;official aLeaa;a()Legz$b;
-