Package org.bukkit.block.data.type
Interface ChiseledBookshelf
- All Superinterfaces:
- BlockData,- Cloneable,- Directional
Interface to the 'slot_0_occupied', 'slow_1_occupied' ... 'slot_5_occupied'
 flags on a bookshelf which indicate which slots are occupied rendered on the
 outside.
 
Block may have 0, 1...
Block may have 0, 1...
getMaximumOccupiedSlots()-1 occupied slots.- 
Method SummaryModifier and TypeMethodDescriptionintGet the maximum amount of slots on this block.Get the indexes of all the occupied slots present on this block.booleanisSlotOccupied(int slot) Checks if the following slot is occupied.voidsetSlotOccupied(int slot, boolean occupied) Sets whether the following slot is occupied.Methods inherited from interface org.bukkit.block.data.BlockDataclone, getAsString, getAsString, getLightEmission, getMaterial, getPistonMoveReaction, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, requiresCorrectToolForDropsMethods inherited from interface org.bukkit.block.data.DirectionalgetFaces, getFacing, setFacing
- 
Method Details- 
isSlotOccupiedboolean isSlotOccupied(int slot) Checks if the following slot is occupied.- Parameters:
- slot- to check
- Returns:
- if slot is occupied
 
- 
setSlotOccupiedvoid setSlotOccupied(int slot, boolean occupied) Sets whether the following slot is occupied.- Parameters:
- slot- to set
- occupied- book
 
- 
getOccupiedSlotsGet the indexes of all the occupied slots present on this block.- Returns:
- set of all occupied slots
 
- 
getMaximumOccupiedSlotsint getMaximumOccupiedSlots()Get the maximum amount of slots on this block.- Returns:
- maximum occupied slots count
 
 
-