Package org.bukkit.block
Interface Bell
- All Superinterfaces:
- BlockState,- Metadatable,- PersistentDataHolder,- TileState
Represents a captured state of Bell.
- 
Method SummaryModifier and TypeMethodDescriptionintGet the amount of ticks since this bell has been resonating, or 0 if the bell is not currently resonating.intGet the amount of ticks since this bell has been shaking, or 0 if the bell is not currently shaking.booleanCheck whether or not this bell is resonating.booleanCheck whether or not this bell is shaking.booleanring()Ring this bell in the direction that the bell is facing.booleanRing this bell.booleanRing this bell in the direction that the bell is facing.booleanRing this bell.Methods inherited from interface org.bukkit.block.BlockStatecopy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.block.TileStategetPersistentDataContainer
- 
Method Details- 
ringRing this bell. This will call aBellRingEvent.- Parameters:
- entity- the entity ringing the bell
- direction- the direction from which the bell was rung or null to ring in the direction that the bell is facing
- Returns:
- true if rung successfully, false if the event was cancelled
 
- 
ringRing this bell in the direction that the bell is facing. This will call aBellRingEvent.- Parameters:
- entity- the entity ringing the bell
- Returns:
- true if rung successfully, false if the event was cancelled
 
- 
ringRing this bell. This will call aBellRingEvent.- Parameters:
- direction- the direction from which the bell was rung or null to ring in the direction that the bell is facing
- Returns:
- true if rung successfully, false if the event was cancelled
 
- 
ringboolean ring()Ring this bell in the direction that the bell is facing. This will call aBellRingEvent.- Returns:
- true if rung successfully, false if the event was cancelled
 
- 
isShakingboolean isShaking()Check whether or not this bell is shaking. A bell is considered to be shaking if it was recently rung.A bell will typically shake for 50 ticks. - Returns:
- true if shaking, false otherwise
 
- 
getShakingTicksint getShakingTicks()Get the amount of ticks since this bell has been shaking, or 0 if the bell is not currently shaking.A bell will typically shake for 50 ticks. - Returns:
- the time in ticks since the bell was rung, or 0 if not shaking
 
- 
isResonatingboolean isResonating()Check whether or not this bell is resonating. A bell is considered to be resonating ifwhile shaking, raiders were detected in the area and are ready to be highlighted to nearby players.A bell will typically resonate for 40 ticks. - Returns:
- true if resonating, false otherwise
 
- 
getResonatingTicksint getResonatingTicks()Get the amount of ticks since this bell has been resonating, or 0 if the bell is not currently resonating.A bell will typically resonate for 40 ticks. - Returns:
- the time in ticks since the bell has been resonating, or 0 if not resonating
 
 
-