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,- ICapabilityProviderImpl<BlockEntity>,- ICapabilitySerializable<CompoundTag>,- IForgeBlockEntity,- INBTSerializable<CompoundTag>
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static interfaceNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate longprivate static final intprivate static final intprivate List<LivingEntity>private booleanprivate intprivate static final intbooleanintprivate static final intFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, load, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveAdditional, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemovedMethods 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- 
DURATIONprivate static final int DURATION- See Also:
 
- 
GLOW_DURATIONprivate static final int GLOW_DURATION- See Also:
 
- 
MIN_TICKS_BETWEEN_SEARCHESprivate static final int MIN_TICKS_BETWEEN_SEARCHES- See Also:
 
- 
MAX_RESONATION_TICKSprivate static final int MAX_RESONATION_TICKS- See Also:
 
- 
TICKS_BEFORE_RESONATIONprivate static final int TICKS_BEFORE_RESONATION- See Also:
 
- 
SEARCH_RADIUSprivate static final int SEARCH_RADIUS- See Also:
 
- 
HEAR_BELL_RADIUSprivate static final int HEAR_BELL_RADIUS- See Also:
 
- 
HIGHLIGHT_RAIDERS_RADIUSprivate static final int HIGHLIGHT_RAIDERS_RADIUS- See Also:
 
- 
lastRingTimestampprivate long lastRingTimestamp
- 
tickspublic int ticks
- 
shakingpublic boolean shaking
- 
clickDirection
- 
nearbyEntities
- 
resonatingprivate boolean resonating
- 
resonationTicksprivate int resonationTicks
 
- 
- 
Constructor Details- 
BellBlockEntity
 
- 
- 
Method Details- 
triggerEventpublic boolean triggerEvent(int p_58837_, int p_58838_) - Overrides:
- triggerEventin class- BlockEntity
 
- 
tickprivate static void tick(Level p_155181_, BlockPos p_155182_, BlockState p_155183_, BellBlockEntity p_155184_, BellBlockEntity.ResonationEndAction p_155185_) 
- 
clientTickpublic static void clientTick(Level p_155176_, BlockPos p_155177_, BlockState p_155178_, BellBlockEntity p_155179_) 
- 
serverTickpublic static void serverTick(Level p_155203_, BlockPos p_155204_, BlockState p_155205_, BellBlockEntity p_155206_) 
- 
onHit
- 
updateEntitiesprivate void updateEntities()
- 
areRaidersNearby
- 
makeRaidersGlowprivate static void makeRaidersGlow(Level p_155187_, BlockPos p_155188_, List<LivingEntity> p_155189_) 
- 
showBellParticlesprivate static void showBellParticles(Level p_155208_, BlockPos p_155209_, List<LivingEntity> p_155210_) 
- 
isRaiderWithinRange
- 
glow
 
-