#549: Add Fluid types / tags

By: Martoph <sager1018@gmail.com>
This commit is contained in:
Bukkit/Spigot
2020-09-14 19:36:28 +10:00
parent 60074ffbfd
commit 9ff0ebcc6a
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package org.bukkit;
import java.util.Locale;
import org.jetbrains.annotations.NotNull;
public enum Fluid implements Keyed {
WATER,
FLOWING_WATER,
LAVA,
FLOWING_LAVA;
private final NamespacedKey key;
private Fluid() {
this.key = NamespacedKey.minecraft(this.name().toLowerCase(Locale.ROOT));
}
@NotNull
@Override
public NamespacedKey getKey() {
return key;
}
}