mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-26 01:43:51 -07:00
24
paper-api/src/main/java/org/bukkit/Fluid.java
Normal file
24
paper-api/src/main/java/org/bukkit/Fluid.java
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user