mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 04:17:44 +01:00
#839: Add BlockData#rotate and BlockData#mirror
By: Jishuna <joshl5324@gmail.com>
This commit is contained in:
parent
d432386d58
commit
7b5c280187
@ -8,6 +8,8 @@ import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockFace;
|
||||
import org.bukkit.block.BlockSupport;
|
||||
import org.bukkit.block.PistonMoveReaction;
|
||||
import org.bukkit.block.structure.Mirror;
|
||||
import org.bukkit.block.structure.StructureRotation;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@ -215,4 +217,22 @@ public interface BlockData extends Cloneable {
|
||||
*/
|
||||
@NotNull
|
||||
Material getPlacementMaterial();
|
||||
|
||||
/**
|
||||
* Rotates this blockdata by the specified {@link StructureRotation}.
|
||||
* <p>
|
||||
* This has no effect on blocks that do not have any rotatable states.
|
||||
*
|
||||
* @param rotation the rotation
|
||||
*/
|
||||
void rotate(@NotNull StructureRotation rotation);
|
||||
|
||||
/**
|
||||
* Mirrors this blockdata using the specified {@link Mirror}.
|
||||
* <p>
|
||||
* This has no effect on blocks that do not have any mirrorable states.
|
||||
*
|
||||
* @param mirror the mirror
|
||||
*/
|
||||
void mirror(@NotNull Mirror mirror);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user