Package redempt.redlib.multiblock
Class Structure.StructureBlock
java.lang.Object
redempt.redlib.multiblock.Structure.StructureBlock
- Enclosing class:
 - Structure
 
Represents a block in a Structure instance
- 
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.BlockgetBlock()Gets the Block this StructureBlock referencesint[]Gets the relative coordinates of this block in the Structure.intGets the relative X of this blockintGets the relative Y of this blockintGets the relative Z of this blockGets the Structure this block is part oforg.bukkit.block.BlockStateorg.bukkit.Material 
- 
Method Details
- 
getRelativeCoordinates
public int[] getRelativeCoordinates()Gets the relative coordinates of this block in the Structure. The same block will always be in the same relative location across Structures, regardless of rotation. [x, y, z]- Returns:
 - The relative coordiantes of this StructureBlock
 
 - 
getStructureData
public org.bukkit.block.BlockState getStructureData()- Returns:
 - The BlockState that the MultiBlockStructure would set at this location if it were built here
 
 - 
getStructureType
public org.bukkit.Material getStructureType()- Returns:
 - The Material that the MultiBlockStructure would set at this location if it were built here
 
 - 
getRelativeX
public int getRelativeX()Gets the relative X of this block- Returns:
 - The relative X of this block
 
 - 
getRelativeY
public int getRelativeY()Gets the relative Y of this block- Returns:
 - The relative Y of this block
 
 - 
getRelativeZ
public int getRelativeZ()Gets the relative Z of this block- Returns:
 - The relative Z of this block
 
 - 
getStructure
Gets the Structure this block is part of- Returns:
 - The Structure
 
 - 
getBlock
public org.bukkit.block.Block getBlock()Gets the Block this StructureBlock references- Returns:
 - The Block
 
 
 -