From 3323421ffe18c0b14ee4142ba9ea626abe670092 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 20 Jul 2018 09:58:45 +1000 Subject: [PATCH] SPIGOT-4075: Add documentation to Levelled regarding fluids By: md_5 --- paper-api/src/main/java/org/bukkit/block/data/Levelled.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/data/Levelled.java b/paper-api/src/main/java/org/bukkit/block/data/Levelled.java index 9eb1029092..87610dc984 100644 --- a/paper-api/src/main/java/org/bukkit/block/data/Levelled.java +++ b/paper-api/src/main/java/org/bukkit/block/data/Levelled.java @@ -4,6 +4,12 @@ package org.bukkit.block.data; * 'level' represents the amount of fluid contained within this block, either by * itself or inside a cauldron. *
+ * In the case of water and lava blocks the levels have special meanings: a + * level of 0 corresponds to a source block, 1-7 regular fluid heights, and 8-15 + * to "falling" fluids. All falling fluids have the same behaviour, but the + * level corresponds to that of the block above them, equal to + * this.level - 8 + *
* May not be higher than {@link #getMaximumLevel()}. */ public interface Levelled extends BlockData {