Class SculkShriekerBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity
- All Implemented Interfaces:
GameEventListener.Provider<VibrationSystem.Listener>,VibrationSystem,IAttachmentHolder,IBlockEntityExtension
public class SculkShriekerBlockEntity
extends BlockEntity
implements GameEventListener.Provider<VibrationSystem.Listener>, VibrationSystem
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
VibrationSystem.Data, VibrationSystem.Listener, VibrationSystem.Ticker, VibrationSystem.User -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final org.slf4j.Loggerprivate static final intprivate static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<SoundEvent> private VibrationSystem.Dataprivate final VibrationSystem.Listenerprivate final VibrationSystem.Userprivate static final intprivate static final intprivate static final intprivate static final intprivate intFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
DEFAULT_VIBRATION_FREQUENCY, RESONANCE_EVENTS, VIBRATION_FREQUENCY_FOR_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancanRespond(ServerLevel p_222873_) protected voidloadAdditional(CompoundTag p_222868_, HolderLookup.Provider p_324354_) private voidplayWardenReplySound(Level p_281300_) protected voidsaveAdditional(CompoundTag p_222878_, HolderLookup.Provider p_324505_) private voidshriek(ServerLevel p_222845_, Entity p_222846_) static ServerPlayertryGetPlayer(Entity p_222862_) voidtryRespond(ServerLevel p_222840_) voidtryShriek(ServerLevel p_222842_, ServerPlayer p_222843_) private booleantrySummonWarden(ServerLevel p_222881_) private booleantryToWarn(ServerLevel p_222875_, ServerPlayer p_222876_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
WARNING_SOUND_RADIUS
private static final int WARNING_SOUND_RADIUS- See Also:
-
WARDEN_SPAWN_ATTEMPTS
private static final int WARDEN_SPAWN_ATTEMPTS- See Also:
-
WARDEN_SPAWN_RANGE_XZ
private static final int WARDEN_SPAWN_RANGE_XZ- See Also:
-
WARDEN_SPAWN_RANGE_Y
private static final int WARDEN_SPAWN_RANGE_Y- See Also:
-
DARKNESS_RADIUS
private static final int DARKNESS_RADIUS- See Also:
-
SHRIEKING_TICKS
private static final int SHRIEKING_TICKS- See Also:
-
SOUND_BY_LEVEL
-
warningLevel
private int warningLevel -
vibrationUser
-
vibrationData
-
vibrationListener
-
-
Constructor Details
-
SculkShriekerBlockEntity
-
-
Method Details
-
getVibrationData
- Specified by:
getVibrationDatain interfaceVibrationSystem
-
getVibrationUser
- Specified by:
getVibrationUserin interfaceVibrationSystem
-
loadAdditional
- Overrides:
loadAdditionalin classBlockEntity
-
saveAdditional
- Overrides:
saveAdditionalin classBlockEntity
-
tryGetPlayer
-
tryShriek
-
tryToWarn
-
shriek
-
canRespond
-
tryRespond
-
playWardenReplySound
-
trySummonWarden
-
getListener
- Specified by:
getListenerin interfaceGameEventListener.Provider<VibrationSystem.Listener>
-