Move non-fluff blocks to new registreation system (yay no more registering in ctors)

This commit is contained in:
Vincent Lee committed 2017-06-24 23:47:59 -05:00
1 parent a6b37966a1
commit 901f70da88
35 files changed
+432 -437

No files matched your search

@@ -64,18 +64,12 @@ public class BlockModFlower extends BlockFlower implements ILexiconable, IGrowab
setUnlocalizedName(name);
setDefaultState(blockState.getBaseState().withProperty(BotaniaStateProps.COLOR, EnumDyeColor.WHITE).withProperty(type, EnumFlowerType.POPPY));
setRegistryName(new ResourceLocation(LibMisc.MOD_ID, name));
GameRegistry.register(this);
registerItemForm();
setHardness(0F);
setSoundType(SoundType.PLANT);
setTickRandomly(false);
setCreativeTab(registerInCreative() ? BotaniaCreativeTab.INSTANCE : null);
}
public void registerItemForm() {
GameRegistry.register(new ItemBlockWithMetadataAndName(this), getRegistryName());
}
@Nonnull
@Override
public AxisAlignedBB getBoundingBox(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos) {