Class GateFrame
java.lang.Object
org.sgrewritten.stargate.api.gate.structure.GateStructure
org.sgrewritten.stargate.gate.structure.GateFrame
Represents the frame part of the gate structure
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a block to this gate framevoidgenerateStructure(VectorOperation converter, org.bukkit.Location topLeft) Generate the structure from formatorg.bukkit.util.BoundingBoxList<org.bukkit.util.BlockVector> Gets all positions, represented by block vectors, where this structure type is usedprotected booleanisValidBlock(org.bukkit.util.BlockVector blockVector, org.bukkit.Material material) Checks if a block in the built portal matches the block in this structureMethods inherited from class org.sgrewritten.stargate.api.gate.structure.GateStructure
isValidState 
- 
Constructor Details
- 
GateFrame
public GateFrame()Instantiates a new gate frame 
 - 
 - 
Method Details
- 
addPart
Adds a block to this gate frame- Parameters:
 blockVector-The block vector describing the location of the block
materials-The usable materials for the block
 - 
getStructureTypePositions
Description copied from class:GateStructureGets all positions, represented by block vectors, where this structure type is used- Specified by:
 getStructureTypePositionsin classGateStructure- Returns:
 All positions where this structure type is used
 - 
isValidBlock
protected boolean isValidBlock(org.bukkit.util.BlockVector blockVector, org.bukkit.Material material) Description copied from class:GateStructureChecks if a block in the built portal matches the block in this structure- Specified by:
 isValidBlockin classGateStructure- Parameters:
 blockVector-The position of the block to check
material-The material found in the built portal
- Returns:
 True if the material matches
 - 
generateStructure
Description copied from class:GateStructureGenerate the structure from format- Specified by:
 generateStructurein classGateStructure- Parameters:
 converter-Conversion between real space and format space
topLeft-Top left corner in real space
 - 
getBoundingBox
public org.bukkit.util.BoundingBox getBoundingBox()- Specified by:
 getBoundingBoxin classGateStructure- Returns:
 The smallest box wherein this gate fits
 
 -