2024-11-01 04:35:06 +01:00
|
|
|
package io.papermc.paper.registry.keys;
|
|
|
|
|
|
|
|
import static net.kyori.adventure.key.Key.key;
|
|
|
|
|
|
|
|
import io.papermc.paper.generated.GeneratedFrom;
|
|
|
|
import io.papermc.paper.registry.RegistryKey;
|
|
|
|
import io.papermc.paper.registry.TypedKey;
|
|
|
|
import net.kyori.adventure.key.Key;
|
|
|
|
import org.bukkit.Fluid;
|
|
|
|
import org.jetbrains.annotations.ApiStatus;
|
2024-11-09 23:26:01 +01:00
|
|
|
import org.jspecify.annotations.NullMarked;
|
2024-11-01 04:35:06 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Vanilla keys for {@link RegistryKey#FLUID}.
|
|
|
|
*
|
|
|
|
* @apiNote The fields provided here are a direct representation of
|
|
|
|
* what is available from the vanilla game source. They may be
|
|
|
|
* changed (including removals) on any Minecraft version
|
|
|
|
* bump, so cross-version compatibility is not provided on the
|
|
|
|
* same level as it is on most of the other API.
|
|
|
|
*/
|
|
|
|
@SuppressWarnings({
|
|
|
|
"unused",
|
|
|
|
"SpellCheckingInspection"
|
|
|
|
})
|
2024-12-03 21:32:05 +01:00
|
|
|
@GeneratedFrom("1.21.4")
|
2024-11-09 23:26:01 +01:00
|
|
|
@NullMarked
|
2024-11-01 04:35:06 +01:00
|
|
|
@ApiStatus.Experimental
|
|
|
|
public final class FluidKeys {
|
|
|
|
/**
|
|
|
|
* {@code minecraft:empty}
|
|
|
|
*
|
|
|
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
|
|
|
*/
|
|
|
|
public static final TypedKey<Fluid> EMPTY = create(key("empty"));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@code minecraft:flowing_lava}
|
|
|
|
*
|
|
|
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
|
|
|
*/
|
|
|
|
public static final TypedKey<Fluid> FLOWING_LAVA = create(key("flowing_lava"));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@code minecraft:flowing_water}
|
|
|
|
*
|
|
|
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
|
|
|
*/
|
|
|
|
public static final TypedKey<Fluid> FLOWING_WATER = create(key("flowing_water"));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@code minecraft:lava}
|
|
|
|
*
|
|
|
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
|
|
|
*/
|
|
|
|
public static final TypedKey<Fluid> LAVA = create(key("lava"));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@code minecraft:water}
|
|
|
|
*
|
|
|
|
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
|
|
|
*/
|
|
|
|
public static final TypedKey<Fluid> WATER = create(key("water"));
|
|
|
|
|
|
|
|
private FluidKeys() {
|
|
|
|
}
|
|
|
|
|
2024-11-09 23:26:01 +01:00
|
|
|
private static TypedKey<Fluid> create(final Key key) {
|
2024-11-01 04:35:06 +01:00
|
|
|
return TypedKey.create(RegistryKey.FLUID, key);
|
|
|
|
}
|
|
|
|
}
|