package net.knarcraft.stargate.container; import org.bukkit.Axis; import org.bukkit.Material; /** * Represents a request for changing a block into another material */ public class BlockChangeRequest { private BlockLocation blockLocation; private Material newMaterial; private Axis newAxis; /** * Instantiates a new block change request * * @param blockLocation

The location of the block to change

* @param material

The new material to change the block to

* @param axis

The new axis to orient the block along

*/ public BlockChangeRequest(BlockLocation blockLocation, Material material, Axis axis) { this.blockLocation = blockLocation; newMaterial = material; newAxis = axis; } /** * Gets the location of the block to change * * @return

The location of the block

*/ public BlockLocation getBlockLocation() { return blockLocation; } /** * Sets the location of the block * * @param blockLocation

The new location of the block

*/ public void setBlockLocation(BlockLocation blockLocation) { this.blockLocation = blockLocation; } /** * Gets the material to change the block into * * @return

The material to change the block into

*/ public Material getMaterial() { return newMaterial; } /** * Sets the material to change the block into * * @param material

The new material

*/ public void setMaterial(Material material) { newMaterial = material; } /** * Gets the axis to orient the block along * * @return

The axis to orient the block along

*/ public Axis getAxis() { return newAxis; } /** * Sets the axis to orient the block along * * @param axis

The new axis to orient the block along

*/ public void setAxis(Axis axis) { newAxis = axis; } }