Skip to content

Commit

Permalink
improve visibility configuration of fake armorstands
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Jun 25, 2024
1 parent 2e23d27 commit 8c9b0da
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/main/java/minevalley/core/api/armorstand/FakeArmorStand.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,23 @@ public interface FakeArmorStand extends EquipmentModifier, LocationModifier, Met
*
* @param function defines whether a specific user can see the armorstand
*/
void isSeeing(Function<OnlineUser, Boolean> function);
void setVisibility(Function<OnlineUser, Boolean> function);

/**
* Updates the visibility of the armorstand
* <br>
* <b>Note:</b> This simply calls the function defined in {@link #setVisibility(Function)} for every user that the armorstand is or could be visible to
*/
void updateVisibility();

/**
* Updates the visibility of the armorstand for a specific user
* <br>
* <b>Note:</b> This simply calls the function defined in {@link #setVisibility(Function)} for this user
*
* @param user to update the visibility for
*/
void updateVisibility(OnlineUser user);

enum InteractType {
LEFT_CLICK, RIGHT_CLICK
Expand Down

0 comments on commit 8c9b0da

Please sign in to comment.