A bunch of decorative blocks

This commit is contained in:
Vincent Lee committed 2019-02-27 00:18:58 -06:00
1 parent a5625750b7
commit 5cc374eaaf
37 files changed
+203 -1040

No files matched your search

@@ -761,7 +761,7 @@ public final class ModBlocks {
initOreDict();
}
private static <V extends IForgeRegistryEntry<V>> void register(IForgeRegistry<V> reg, IForgeRegistryEntry<V> thing, String name) {
public static <V extends IForgeRegistryEntry<V>> void register(IForgeRegistry<V> reg, IForgeRegistryEntry<V> thing, String name) {
reg.register(thing.setRegistryName(new ResourceLocation(LibMisc.MOD_ID, name)));
}
@@ -955,4 +955,26 @@ public final class ModBlocks {
}
}
public static Block getBuriedPetal(EnumDyeColor color) {
switch (color) {
default:
case WHITE: return whiteBuriedPetals;
case ORANGE: return orangeBuriedPetals;
case MAGENTA: return magentaBuriedPetals;
case LIGHT_BLUE: return lightBlueBuriedPetals;
case YELLOW: return yellowBuriedPetals;
case LIME: return limeBuriedPetals;
case PINK: return pinkBuriedPetals;
case GRAY: return grayBuriedPetals;
case LIGHT_GRAY: return lightGrayBuriedPetals;
case CYAN: return cyanBuriedPetals;
case PURPLE: return purpleBuriedPetals;
case BLUE: return blueBuriedPetals;
case BROWN: return brownBuriedPetals;
case GREEN: return greenBuriedPetals;
case RED: return redBuriedPetals;
case BLACK: return blackBuriedPetals;
}
}
}