mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 04:32:23 +00:00
Move non-fluff blocks to new registreation system (yay no more registering in ctors)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user