From 2220fbdee672e0b943654b6188f6377063b72553 Mon Sep 17 00:00:00 2001 From: jascotty2 Date: Wed, 11 Sep 2019 07:15:28 -0500 Subject: [PATCH] add wool color for compatible materials --- .../compatibility/CompatibleMaterial.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java b/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java index 1c1718a4..0a2e0d5c 100644 --- a/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java +++ b/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java @@ -2113,6 +2113,44 @@ public enum CompatibleMaterial { return WHITE_STAINED_GLASS; } + public static CompatibleMaterial getWoolColor(int color) { + switch (color) { + case 0: + return WHITE_WOOL; + case 1: + return ORANGE_WOOL; + case 2: + return MAGENTA_WOOL; + case 3: + return LIGHT_BLUE_WOOL; + case 4: + return YELLOW_WOOL; + case 5: + return LIME_WOOL; + case 6: + return PINK_WOOL; + case 7: + return GRAY_WOOL; + case 8: + return LIGHT_GRAY_WOOL; + case 9: + return CYAN_WOOL; + case 10: + return PURPLE_WOOL; + case 11: + return BLUE_WOOL; + case 12: + return BROWN_WOOL; + case 13: + return GREEN_WOOL; + case 14: + return RED_WOOL; + case 15: + return BLACK_WOOL; + } + return WHITE_WOOL; + } + public static CompatibleMaterial getDyeColor(int color) { switch (color) { case 0: