mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-12 18:55:51 -07:00
#514: Add visibility and fixed API for ItemFrames
By: SydMontague <sydmontague@phoenix-staffel.de>
This commit is contained in:
@@ -48,4 +48,40 @@ public interface ItemFrame extends Hanging {
|
||||
* @throws IllegalArgumentException if rotation is null
|
||||
*/
|
||||
public void setRotation(@NotNull Rotation rotation) throws IllegalArgumentException;
|
||||
|
||||
/**
|
||||
* Returns whether the item frame is be visible or not.
|
||||
*
|
||||
* @return whether the item frame is visible or not
|
||||
*/
|
||||
boolean isVisible();
|
||||
|
||||
/**
|
||||
* Sets whether the item frame should be visible or not.
|
||||
*
|
||||
* @param visible whether the item frame is visible or not
|
||||
*/
|
||||
void setVisible(boolean visible);
|
||||
|
||||
/**
|
||||
* Returns whether the item frame is "fixed" or not.
|
||||
*
|
||||
* When true it's not possible to destroy/move the frame (e.g. by damage,
|
||||
* interaction, pistons, or missing supporting blocks), rotate the item or
|
||||
* place/remove items.
|
||||
*
|
||||
* @return whether the item frame is fixed or not
|
||||
*/
|
||||
boolean isFixed();
|
||||
|
||||
/**
|
||||
* Sets whether the item frame should be fixed or not.
|
||||
*
|
||||
* When set to true it's not possible to destroy/move the frame (e.g. by
|
||||
* damage, interaction, pistons, or missing supporting blocks), rotate the
|
||||
* item or place/remove items.
|
||||
*
|
||||
* @param visible whether the item frame is fixed or not
|
||||
*/
|
||||
void setFixed(boolean visible);
|
||||
}
|
||||
|
Reference in New Issue
Block a user