Commits

Thinkofname authored e3d656cd5dd
Fix mistakes in Material
No tags

src/main/java/org/bukkit/Material.java

Modified
838 838 case SPRUCE_FENCE_GATE:
839 839 case BIRCH_FENCE_GATE:
840 840 case JUNGLE_FENCE_GATE:
841 841 case DARK_OAK_FENCE_GATE:
842 842 case ACACIA_FENCE_GATE:
843 843 case SPRUCE_FENCE:
844 844 case BIRCH_FENCE:
845 845 case JUNGLE_FENCE:
846 846 case DARK_OAK_FENCE:
847 847 case ACACIA_FENCE:
848 + case STANDING_BANNER:
849 + case WALL_BANNER:
850 + case DAYLIGHT_DETECTOR_INVERTED:
851 + case SPRUCE_DOOR:
852 + case BIRCH_DOOR:
853 + case JUNGLE_DOOR:
854 + case ACACIA_DOOR:
855 + case DARK_OAK_DOOR:
848 856 return true;
849 857 default:
850 858 return false;
851 859 }
852 860 }
853 861
854 862 /**
855 863 * Check if the material is a block and does not block any light
856 864 *
857 865 * @return True if this material is a block and does not block any light
898 906 case FLOWER_POT:
899 907 case CARROT:
900 908 case POTATO:
901 909 case WOOD_BUTTON:
902 910 case SKULL:
903 911 case REDSTONE_COMPARATOR_OFF:
904 912 case REDSTONE_COMPARATOR_ON:
905 913 case ACTIVATOR_RAIL:
906 914 case CARPET:
907 915 case DOUBLE_PLANT:
908 - case DAYLIGHT_DETECTOR_INVERTED:
909 916 return true;
910 917 default:
911 918 return false;
912 919 }
913 920 }
914 921
915 922 /**
916 923 * Check if the material is a block and can catch fire
917 924 *
918 925 * @return True if this material is a block and can catch fire
962 969 case SPRUCE_FENCE_GATE:
963 970 case BIRCH_FENCE_GATE:
964 971 case JUNGLE_FENCE_GATE:
965 972 case DARK_OAK_FENCE_GATE:
966 973 case ACACIA_FENCE_GATE:
967 974 case SPRUCE_FENCE:
968 975 case BIRCH_FENCE:
969 976 case JUNGLE_FENCE:
970 977 case DARK_OAK_FENCE:
971 978 case ACACIA_FENCE:
979 + case STANDING_BANNER:
980 + case WALL_BANNER:
981 + case DAYLIGHT_DETECTOR_INVERTED:
982 + case SPRUCE_DOOR:
983 + case BIRCH_DOOR:
984 + case JUNGLE_DOOR:
985 + case ACACIA_DOOR:
986 + case DARK_OAK_DOOR:
972 987 return true;
973 988 default:
974 989 return false;
975 990 }
976 991 }
977 992
978 993 /**
979 994 * Check if the material is a block and can burn away
980 995 *
981 996 * @return True if this material is a block and can burn away
1098 1113 case STAINED_CLAY:
1099 1114 case HAY_BLOCK:
1100 1115 case HARD_CLAY:
1101 1116 case COAL_BLOCK:
1102 1117 case LOG_2:
1103 1118 case PACKED_ICE:
1104 1119 case SLIME_BLOCK:
1105 1120 case BARRIER:
1106 1121 case PRISMARINE:
1107 1122 case RED_SANDSTONE:
1123 + case DOUBLE_STONE_SLAB2:
1108 1124 return true;
1109 1125 default:
1110 1126 return false;
1111 1127 }
1112 1128 }
1113 1129
1114 1130 /**
1115 1131 * @return True if this material is affected by gravity.
1116 1132 */
1117 1133 public boolean hasGravity() {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut