Class SculkShriekerBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.SculkShriekerBlockEntity
- All Implemented Interfaces:
- GameEventListener.Holder<VibrationSystem.Listener>,- VibrationSystem,- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- ICapabilitySerializable<CompoundTag>,- IForgeBlockEntity,- INBTSerializable<CompoundTag>
public class SculkShriekerBlockEntity
extends BlockEntity
implements GameEventListener.Holder<VibrationSystem.Listener>, VibrationSystem
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>Nested classes/interfaces inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystemVibrationSystem.Data, VibrationSystem.Listener, VibrationSystem.Ticker, VibrationSystem.User
- 
Field SummaryFieldsModifier 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.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABBFields inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystemRESONANCE_EVENTS, VIBRATION_FREQUENCY_FOR_EVENT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate booleancanRespond(ServerLevel p_222873_) voidload(CompoundTag p_222868_) private voidplayWardenReplySound(Level p_281300_) protected voidsaveAdditional(CompoundTag p_222878_) 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.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitydeserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
WARNING_SOUND_RADIUSprivate static final int WARNING_SOUND_RADIUS- See Also:
 
- 
WARDEN_SPAWN_ATTEMPTSprivate static final int WARDEN_SPAWN_ATTEMPTS- See Also:
 
- 
WARDEN_SPAWN_RANGE_XZprivate static final int WARDEN_SPAWN_RANGE_XZ- See Also:
 
- 
WARDEN_SPAWN_RANGE_Yprivate static final int WARDEN_SPAWN_RANGE_Y- See Also:
 
- 
DARKNESS_RADIUSprivate static final int DARKNESS_RADIUS- See Also:
 
- 
SHRIEKING_TICKSprivate static final int SHRIEKING_TICKS- See Also:
 
- 
SOUND_BY_LEVEL
- 
warningLevelprivate int warningLevel
- 
vibrationUser
- 
vibrationData
- 
vibrationListener
 
- 
- 
Constructor Details- 
SculkShriekerBlockEntity
 
- 
- 
Method Details- 
getVibrationData- Specified by:
- getVibrationDatain interface- VibrationSystem
 
- 
getVibrationUser- Specified by:
- getVibrationUserin interface- VibrationSystem
 
- 
load- Overrides:
- loadin class- BlockEntity
 
- 
saveAdditional- Overrides:
- saveAdditionalin class- BlockEntity
 
- 
tryGetPlayer
- 
tryShriek
- 
tryToWarn
- 
shriek
- 
canRespond
- 
tryRespond
- 
playWardenReplySound
- 
trySummonWarden
- 
getListener- Specified by:
- getListenerin interface- GameEventListener.Holder<VibrationSystem.Listener>
 
 
-