All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.guizhanss.guizhanlib.minecraft.utils.compatibility.MaterialX Maven / Gradle / Ivy

There is a newer version: 1.8.1
Show newest version
package net.guizhanss.guizhanlib.minecraft.utils.compatibility;

import lombok.experimental.UtilityClass;
import net.guizhanss.guizhanlib.minecraft.utils.MinecraftVersionUtil;
import org.bukkit.Material;

@UtilityClass
public class MaterialX {

    public static final Material SHORT_GRASS;
    public static final Material TURTLE_SCUTE;

    static {
        SHORT_GRASS = MinecraftVersionUtil.isAtLeast(20, 3) ? Material.getMaterial("SHORT_GRASS") : Material.getMaterial("GRASS");
        TURTLE_SCUTE = MinecraftVersionUtil.isAtLeast(20, 5) ? Material.getMaterial("TURTLE_SCUTE") : Material.getMaterial("SCUTE");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy