package net.knarcraft.stargate; import org.bukkit.Axis; import org.bukkit.Material; /** * Used to store information about a custom block populator */ public class BloxPopulator { private BlockLocation blockLocation; private Material nextMat; private Axis nextAxis; /** * Instantiates a new block populator * * @param blockLocation
The location to start from
* @param materialThe material to populate
* @param axisThe axis to populate along
*/ public BloxPopulator(BlockLocation blockLocation, Material material, Axis axis) { this.blockLocation = blockLocation; nextMat = material; nextAxis = axis; } /** * Gets the location to start from * * @returnThe location to start from
*/ public BlockLocation getBlockLocation() { return blockLocation; } /** * Sets the location to start from * * @param blockLocationThe new start location
*/ public void setBlockLocation(BlockLocation blockLocation) { this.blockLocation = blockLocation; } /** * Gets the material used for population * * @returnThe material used for population
*/ public Material getMaterial() { return nextMat; } /** * Sets the polulator material * * @param materialThe new populator material
*/ public void setMat(Material material) { nextMat = material; } /** * Gets the current population axis * * @returnThe current population axis
*/ public Axis getAxis() { return nextAxis; } /** * Sets the populator axis * * @param axisThe new populator axis
*/ public void setAxis(Axis axis) { nextAxis = axis; } }