Class SculkSensorBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.SculkSensorBlockEntity
- All Implemented Interfaces:
 GameEventListener.Holder<VibrationSystem.Listener>,VibrationSystem,IAttachmentHolder,IBlockEntityExtension,INBTSerializable<CompoundTag>
- Direct Known Subclasses:
 CalibratedSculkSensorBlockEntity
public class SculkSensorBlockEntity
extends BlockEntity
implements GameEventListener.Holder<VibrationSystem.Listener>, VibrationSystem
- 
Nested Class Summary
Nested ClassesNested 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 intprivate static final org.slf4j.Loggerprivate VibrationSystem.Dataprivate final VibrationSystem.Listenerprivate final VibrationSystem.UserFields 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
RESONANCE_EVENTS, VIBRATION_FREQUENCY_FOR_EVENT - 
Constructor Summary
ConstructorsModifierConstructorDescriptionSculkSensorBlockEntity(BlockPos p_155635_, BlockState p_155636_) protectedSculkSensorBlockEntity(BlockEntityType<?> p_277405_, BlockPos p_277502_, BlockState p_277699_)  - 
Method Summary
Modifier and TypeMethodDescriptionintvoidload(CompoundTag p_155649_) protected voidsaveAdditional(CompoundTag p_187511_) voidsetLastVibrationFrequency(int p_222801_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, removeData, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setData, setLevel, setRemoved, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
areAttachmentsCompatible, deserializeAttachments, getData, 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, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT 
- 
Field Details
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
vibrationData
 - 
vibrationListener
 - 
vibrationUser
 - 
lastVibrationFrequency
private int lastVibrationFrequency 
 - 
 - 
Constructor Details
- 
SculkSensorBlockEntity
protected SculkSensorBlockEntity(BlockEntityType<?> p_277405_, BlockPos p_277502_, BlockState p_277699_)  - 
SculkSensorBlockEntity
 
 - 
 - 
Method Details
- 
createVibrationUser
 - 
load
- Overrides:
 loadin classBlockEntity
 - 
saveAdditional
- Overrides:
 saveAdditionalin classBlockEntity
 - 
getVibrationData
- Specified by:
 getVibrationDatain interfaceVibrationSystem
 - 
getVibrationUser
- Specified by:
 getVibrationUserin interfaceVibrationSystem
 - 
getLastVibrationFrequency
public int getLastVibrationFrequency() - 
setLastVibrationFrequency
public void setLastVibrationFrequency(int p_222801_)  - 
getListener
- Specified by:
 getListenerin interfaceGameEventListener.Holder<VibrationSystem.Listener>
 
 -