Class SculkSensorBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.SculkSensorBlockEntity
- All Implemented Interfaces:
VibrationListener.VibrationListenerConfig
,ICapabilityProvider
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
public class SculkSensorBlockEntity
extends BlockEntity
implements VibrationListener.VibrationListenerConfig
-
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static int
getRedstoneStrengthForDistance(int p_155651_, int p_155652_)
void
load(CompoundTag p_155649_)
void
onSignalReceive(Level p_155638_, GameEventListener p_155639_, GameEvent p_155640_, int p_155641_)
save(CompoundTag p_155654_)
boolean
shouldListen(Level p_155643_, GameEventListener p_155644_, BlockPos p_155645_, GameEvent p_155646_, Entity p_155647_)
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
listener
-
lastVibrationFrequency
private int lastVibrationFrequency
-
-
Constructor Details
-
SculkSensorBlockEntity
-
-
Method Details
-
load
- Overrides:
load
in classBlockEntity
-
save
- Overrides:
save
in classBlockEntity
-
getListener
-
getLastVibrationFrequency
public int getLastVibrationFrequency() -
shouldListen
public boolean shouldListen(Level p_155643_, GameEventListener p_155644_, BlockPos p_155645_, GameEvent p_155646_, @Nullable Entity p_155647_)- Specified by:
shouldListen
in interfaceVibrationListener.VibrationListenerConfig
-
onSignalReceive
public void onSignalReceive(Level p_155638_, GameEventListener p_155639_, GameEvent p_155640_, int p_155641_)- Specified by:
onSignalReceive
in interfaceVibrationListener.VibrationListenerConfig
-
getRedstoneStrengthForDistance
public static int getRedstoneStrengthForDistance(int p_155651_, int p_155652_)
-