This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.bukkit.Color; | |
| import org.bukkit.Material; | |
| public enum GlassColor { | |
| RED(Material.RED_STAINED_GLASS_PANE, Color.fromARGB(0x00FF0000)), | |
| ORANGE(Material.ORANGE_STAINED_GLASS_PANE, Color.fromARGB(0x00FFA500)), | |
| YELLOW(Material.YELLOW_STAINED_GLASS_PANE, Color.fromARGB(0x00FFFF00)), | |
| LIME(Material.LIME_STAINED_GLASS_PANE, Color.fromARGB(0x0000FF00)), | |
| GREEN(Material.GREEN_STAINED_GLASS_PANE, Color.fromARGB(0x00008000)), | |
| CYAN(Material.CYAN_STAINED_GLASS_PANE, Color.fromARGB(0x0000FFFF)), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DirectImmutableHolder<T> implements Holder<T> { | |
| private final T value; | |
| private DirectImmutableHolder(T value) { | |
| this.value = value; | |
| } | |
| public static <T> Holder<T> of(T value) { | |
| return new DirectImmutableHolder<>(value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface ItemProcessor { | |
| ItemStack processItem(ItemStack input); | |
| ItemStack revertItem(ItemStack input); // Used for creative mode handling. Feel free to use PDC in processed items | |
| } |
OlderNewer