fix javadoc

This commit is contained in:
Isaac - The456 2024-09-09 02:04:54 +01:00
parent a4979e9214
commit 2849819ef9
No known key found for this signature in database
GPG Key ID: 57A848D2F87C14EF

View File

@ -12,7 +12,7 @@ This also deprecates Bukkits api because of the confusing and outright incorrect
diff --git a/src/main/java/io/papermc/paper/block/LidMode.java b/src/main/java/io/papermc/paper/block/LidMode.java
new file mode 100644
index 0000000000000000000000000000000000000000..0b1a6c09fefb5150bf3536f68a18504ed2b43beb
index 0000000000000000000000000000000000000000..fb7eea1ddda3cded5c4416d32bb48ef71aa25343
--- /dev/null
+++ b/src/main/java/io/papermc/paper/block/LidMode.java
@@ -0,0 +1,47 @@
@ -24,30 +24,30 @@ index 0000000000000000000000000000000000000000..0b1a6c09fefb5150bf3536f68a18504e
+public enum LidMode {
+ /**
+ * The default lid mode, the lid will open and close based on player interaction.
+ * <p/>
+ * <p>
+ * the state used for this is provided with {@link Lidded#getTrueLidState()}
+ */
+ DEFAULT,
+
+ /**
+ * The lid will be forced open, regardless of player interaction.
+ * <p/>
+ * <p>
+ * This needs to be manually unset with another call to {@link Lidded#setLidMode(LidMode)}.
+ */
+ FORCED_OPEN,
+
+ /**
+ * The lid will be forced closed, regardless of player interaction.
+ * <p/>
+ * <p>
+ * This needs to be manually unset with another call to {@link Lidded#setLidMode(LidMode)}.
+ */
+ FORCED_CLOSED,
+
+ /**
+ * The lid will be forced open until at least one player has opened it.
+ * <p/>
+ * <p>
+ * It will then revert to {@link #DEFAULT}.
+ * <p/>
+ * <p>
+ * If at least one player is viewing it when this is set, it will immediately revert to
+ * {@link #DEFAULT}.
+ */
@ -55,9 +55,9 @@ index 0000000000000000000000000000000000000000..0b1a6c09fefb5150bf3536f68a18504e
+
+ /**
+ * The lid will be forced closed until all players currently viewing it have closed it.
+ * <p/>
+ * <p>
+ * It will then revert to {@link #DEFAULT}.
+ * <p/>
+ * <p>
+ * If no players are viewing it when this is set, it will immediately revert to
+ * {@link #DEFAULT}.
+ */