Class BellBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BellBlockEntity
- All Implemented Interfaces:
ICapabilityProvider,ICapabilitySerializable<CompoundTag>,IForgeBlockEntity,INBTSerializable<CompoundTag>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate static intprivate static intprivate static intprivate longprivate static intprivate static intprivate List<LivingEntity>private booleanprivate intprivate static intbooleanintprivate static intFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanareRaidersNearby(BlockPos p_155200_, List<LivingEntity> p_155201_)static voidclientTick(Level p_155176_, BlockPos p_155177_, BlockState p_155178_, BellBlockEntity p_155179_)private static voidglow(LivingEntity p_58841_)private static booleanisRaiderWithinRange(BlockPos p_155197_, LivingEntity p_155198_)private static voidmakeRaidersGlow(Level p_155187_, BlockPos p_155188_, List<LivingEntity> p_155189_)voidstatic voidserverTick(Level p_155203_, BlockPos p_155204_, BlockState p_155205_, BellBlockEntity p_155206_)private static voidshowBellParticles(Level p_155208_, BlockPos p_155209_, List<LivingEntity> p_155210_)private static voidtick(Level p_155181_, BlockPos p_155182_, BlockState p_155183_, BellBlockEntity p_155184_, BellBlockEntity.ResonationEndAction p_155185_)booleantriggerEvent(int p_58837_, int p_58838_)private voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, load, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, save, setBlockState, setChanged, setChanged, setLevel, setRemovedMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
DURATION
private static final int DURATION- See Also:
- Constant Field Values
-
GLOW_DURATION
private static final int GLOW_DURATION- See Also:
- Constant Field Values
-
MIN_TICKS_BETWEEN_SEARCHES
private static final int MIN_TICKS_BETWEEN_SEARCHES- See Also:
- Constant Field Values
-
MAX_RESONATION_TICKS
private static final int MAX_RESONATION_TICKS- See Also:
- Constant Field Values
-
TICKS_BEFORE_RESONATION
private static final int TICKS_BEFORE_RESONATION- See Also:
- Constant Field Values
-
SEARCH_RADIUS
private static final int SEARCH_RADIUS- See Also:
- Constant Field Values
-
HEAR_BELL_RADIUS
private static final int HEAR_BELL_RADIUS- See Also:
- Constant Field Values
-
HIGHLIGHT_RAIDERS_RADIUS
private static final int HIGHLIGHT_RAIDERS_RADIUS- See Also:
- Constant Field Values
-
lastRingTimestamp
private long lastRingTimestamp -
ticks
public int ticks -
shaking
public boolean shaking -
clickDirection
-
nearbyEntities
-
resonating
private boolean resonating -
resonationTicks
private int resonationTicks
-
-
Constructor Details
-
BellBlockEntity
-
-
Method Details
-
triggerEvent
public boolean triggerEvent(int p_58837_, int p_58838_)- Overrides:
triggerEventin classBlockEntity
-
tick
private static void tick(Level p_155181_, BlockPos p_155182_, BlockState p_155183_, BellBlockEntity p_155184_, BellBlockEntity.ResonationEndAction p_155185_) -
clientTick
public static void clientTick(Level p_155176_, BlockPos p_155177_, BlockState p_155178_, BellBlockEntity p_155179_) -
serverTick
public static void serverTick(Level p_155203_, BlockPos p_155204_, BlockState p_155205_, BellBlockEntity p_155206_) -
onHit
-
updateEntities
private void updateEntities() -
areRaidersNearby
-
makeRaidersGlow
private static void makeRaidersGlow(Level p_155187_, BlockPos p_155188_, List<LivingEntity> p_155189_) -
showBellParticles
private static void showBellParticles(Level p_155208_, BlockPos p_155209_, List<LivingEntity> p_155210_) -
isRaiderWithinRange
-
glow
-