Package org.bukkit.block
Interface SculkCatalyst
- All Superinterfaces:
BlockState
,Metadatable
,PersistentDataHolder
,PersistentDataViewHolder
,TileState
Represents a captured state of a sculk catalyst.
-
Method Summary
Methods inherited from interface org.bukkit.block.BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer, isSnapshot
-
Method Details
-
bloom
Causes a new sculk bloom, as if an entity just died around this catalyst.Typically, charges should be set to the exp reward of a mob (
EntityDeathEvent.getDroppedExp()
), which is usually 3-5 for animals, and 5-10 for the average mob (up to 50 for wither skeletons). Roughly speaking, for each charge, 1 more sculk block will be placed.If
charges > 1000
, multiple cursors will be spawned in the block.- Parameters:
block
- which block to spawn the cursor incharges
- how much charge to spawn.
-
bloom
Bloom at the specified location as if an entity that drops experience just died there.- Parameters:
position
- position to bloom atcharge
- charge to bloom with, normally the amount of experience dropped from the dead entity
-