Commits

Martoph authored and md_5 committed d75d8a38c4b
#549: Add Fluid types / tags
No tags

src/main/java/org/bukkit/Fluid.java

Added
1 +package org.bukkit;
2 +
3 +import java.util.Locale;
4 +import org.jetbrains.annotations.NotNull;
5 +
6 +public enum Fluid implements Keyed {
7 +
8 + WATER,
9 + FLOWING_WATER,
10 + LAVA,
11 + FLOWING_LAVA;
12 +
13 + private final NamespacedKey key;
14 +
15 + private Fluid() {
16 + this.key = NamespacedKey.minecraft(this.name().toLowerCase(Locale.ROOT));
17 + }
18 +
19 + @NotNull
20 + @Override
21 + public NamespacedKey getKey() {
22 + return key;
23 + }
24 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut