mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 06:24:27 +00:00
Eliminate the IRegisterCallback shim
This commit is contained in:
66 files changed
+328
-194
No files matched your search
@@ -47,7 +47,6 @@ public class BlockFelPumpkin extends BlockMod implements ILexiconable {
|
||||
setHardness(1F);
|
||||
setSoundType(SoundType.WOOD);
|
||||
MinecraftForge.EVENT_BUS.register(BlockFelPumpkin.class);
|
||||
setDefaultState(blockState.getBaseState().withProperty(BotaniaStateProps.CARDINALS, EnumFacing.SOUTH));
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@@ -56,6 +55,11 @@ public class BlockFelPumpkin extends BlockMod implements ILexiconable {
|
||||
return new BlockStateContainer(this, BotaniaStateProps.CARDINALS);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IBlockState pickDefaultState() {
|
||||
return blockState.getBaseState().withProperty(BotaniaStateProps.CARDINALS, EnumFacing.SOUTH);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetaFromState(IBlockState state) {
|
||||
return state.getValue(BotaniaStateProps.CARDINALS).getHorizontalIndex();
|
||||
|
||||
Reference in new issue
Block a user