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 csjintermediary net/minecraft/class_7133named net/minecraft/block/entity/SculkShriekerBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate VibrationListenerprivate static final Int2ObjectMap<SoundEvent>private intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, int delay) Accepts a game event after delay.booleanaccepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.private booleancanWarn(ServerWorld world) private static Optional<SculkShriekerWarningManager>getClosestPlayerWarningManager(ServerWorld world, BlockPos pos) getTag()voidonListen()private voidvoidreadNbt(NbtCompound nbt) voidshriek(ServerWorld world, @Nullable Entity entity) private static voidtrySpawnWarden(ServerWorld world, BlockPos pos) private booleantrySyncWarningLevel(ServerWorld world, BlockState state) voidwarn(ServerWorld world) protected voidwriteNbt(NbtCompound nbt) 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, writeIdToNbtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.event.listener.VibrationListener.Callback
canAccept, canAvoidVibrations
-
Field Details
-
field_38237
private static final org.slf4j.Logger field_38237- Mappings:
Namespace Name Mixin selector official aLcsj;a:Lorg/slf4j/Logger;intermediary field_38237Lnet/minecraft/class_7133;field_38237:Lorg/slf4j/Logger;named field_38237Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38237:Lorg/slf4j/Logger;
-
RANGE
private static final int RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official bLcsj;b:Iintermediary field_38238Lnet/minecraft/class_7133;field_38238:Inamed RANGELnet/minecraft/block/entity/SculkShriekerBlockEntity;RANGE:I
-
field_38750
private static final int field_38750- See Also:
- Mappings:
Namespace Name Mixin selector official cLcsj;c:Iintermediary field_38750Lnet/minecraft/class_7133;field_38750:Inamed field_38750Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38750:I
-
field_38751
private static final int field_38751- See Also:
- Mappings:
Namespace Name Mixin selector official dLcsj;d:Iintermediary field_38751Lnet/minecraft/class_7133;field_38751:Inamed field_38751Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38751:I
-
field_38752
private static final int field_38752- See Also:
- Mappings:
Namespace Name Mixin selector official eLcsj;e:Iintermediary field_38752Lnet/minecraft/class_7133;field_38752:Inamed field_38752Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38752:I
-
field_38753
private static final int field_38753- See Also:
- Mappings:
Namespace Name Mixin selector official fLcsj;f:Iintermediary field_38753Lnet/minecraft/class_7133;field_38753:Inamed field_38753Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38753:I
-
field_38754
private static final int field_38754- See Also:
- Mappings:
Namespace Name Mixin selector official gLcsj;g:Iintermediary field_38754Lnet/minecraft/class_7133;field_38754:Inamed field_38754Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38754:I
-
WARNING_SOUNDS
- Mappings:
Namespace Name Mixin selector official hLcsj;h: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;
-
field_38756
private static final int field_38756- See Also:
- Mappings:
Namespace Name Mixin selector official iLcsj;i:Iintermediary field_38756Lnet/minecraft/class_7133;field_38756:Inamed field_38756Lnet/minecraft/block/entity/SculkShriekerBlockEntity;field_38756:I
-
warningLevel
private int warningLevel- Mappings:
Namespace Name Mixin selector official jLcsj;j:Iintermediary field_38757Lnet/minecraft/class_7133;field_38757:Inamed warningLevelLnet/minecraft/block/entity/SculkShriekerBlockEntity;warningLevel:I
-
vibrationListener
- Mappings:
Namespace Name Mixin selector official kLcsj;k:Lcya;intermediary field_38239Lnet/minecraft/class_7133;field_38239:Lnet/minecraft/class_5718;named vibrationListenerLnet/minecraft/block/entity/SculkShriekerBlockEntity;vibrationListener:Lnet/minecraft/world/event/listener/VibrationListener;
-
-
Constructor Details
-
SculkShriekerBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcsj;<init>(Lgp;Lctp;)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
-
getVibrationListener
- Mappings:
Namespace Name Mixin selector official cLcsj;c()Lcya;intermediary method_42325Lnet/minecraft/class_7133;method_42325()Lnet/minecraft/class_5718;named getVibrationListenerLnet/minecraft/block/entity/SculkShriekerBlockEntity;getVibrationListener()Lnet/minecraft/world/event/listener/VibrationListener;
-
readNbt
- Overrides:
readNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcrj;a(Lpe;)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
- Overrides:
writeNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLcrj;b(Lpe;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getTag
- Specified by:
getTagin interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official fJLcya$b;fJ()Lajs;intermediary method_42210Lnet/minecraft/class_5718$class_5719;method_42210()Lnet/minecraft/class_6862;named getTagLnet/minecraft/world/event/listener/VibrationListener$Callback;getTag()Lnet/minecraft/tag/TagKey;
-
accepts
public boolean accepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.- Specified by:
acceptsin interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official aLcya$b;a(Lafd;Lcxw;Lgp;Lcxu;Lcxu$a;)Zintermediary method_32970Lnet/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;)Znamed acceptsLnet/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
-
accept
public void accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable @Nullable Entity entity, @Nullable @Nullable Entity sourceEntity, int delay) Accepts a game event after delay.- Specified by:
acceptin interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official aLcya$b;a(Lafd;Lcxw;Lgp;Lcxu;Lazs;Lazs;I)Vintermediary method_32969Lnet/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;I)Vnamed acceptLnet/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;I)V
-
canWarn
- Mappings:
Namespace Name Mixin selector official bLcsj;b(Lafd;)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
-
shriek
- Mappings:
Namespace Name Mixin selector official aLcsj;a(Lafd;Lazs;)Vintermediary method_43141Lnet/minecraft/class_7133;method_43141(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
-
trySyncWarningLevel
- Mappings:
Namespace Name Mixin selector official aLcsj;a(Lafd;Lctp;)Zintermediary method_43142Lnet/minecraft/class_7133;method_43142(Lnet/minecraft/class_3218;Lnet/minecraft/class_2680;)Znamed trySyncWarningLevelLnet/minecraft/block/entity/SculkShriekerBlockEntity;trySyncWarningLevel(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/BlockState;)Z
-
getClosestPlayerWarningManager
private static Optional<SculkShriekerWarningManager> getClosestPlayerWarningManager(ServerWorld world, BlockPos pos) - Mappings:
Namespace Name Mixin selector official aLcsj;a(Lafd;Lgp;)Ljava/util/Optional;intermediary method_43143Lnet/minecraft/class_7133;method_43143(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Ljava/util/Optional;named getClosestPlayerWarningManagerLnet/minecraft/block/entity/SculkShriekerBlockEntity;getClosestPlayerWarningManager(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
-
warn
- Mappings:
Namespace Name Mixin selector official aLcsj;a(Lafd;)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
private void playWarningSound()- Mappings:
Namespace Name Mixin selector official dLcsj;d()Vintermediary method_43151Lnet/minecraft/class_7133;method_43151()Vnamed playWarningSoundLnet/minecraft/block/entity/SculkShriekerBlockEntity;playWarningSound()V
-
trySpawnWarden
- Mappings:
Namespace Name Mixin selector official bLcsj;b(Lafd;Lgp;)Vintermediary method_43148Lnet/minecraft/class_7133;method_43148(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Vnamed trySpawnWardenLnet/minecraft/block/entity/SculkShriekerBlockEntity;trySpawnWarden(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
-
onListen
public void onListen()- Specified by:
onListenin interfaceVibrationListener.Callback- Mappings:
Namespace Name Mixin selector official fLcya$b;f()Vintermediary method_42672Lnet/minecraft/class_5718$class_5719;method_42672()Vnamed onListenLnet/minecraft/world/event/listener/VibrationListener$Callback;onListen()V
-