package net.knarcraft.stargate.container; import org.bukkit.Axis; import org.bukkit.Material; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** * Represents a request for changing a block into another material */ public class BlockChangeRequest { private final BlockLocation blockLocation; private final Material newMaterial; private final 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(@NotNull BlockLocation blockLocation, @NotNull Material material, @Nullable Axis axis) { this.blockLocation = blockLocation; newMaterial = material; newAxis = axis; } /** * Gets the location of the block to change * * @return

The location of the block

*/ @NotNull public BlockLocation getBlockLocation() { return blockLocation; } /** * Gets the material to change the block into * * @return

The material to change the block into

*/ @NotNull public Material getMaterial() { return newMaterial; } /** * Gets the axis to orient the block along * * @return

The axis to orient the block along

*/ @Nullable public Axis getAxis() { return newAxis; } }