mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Eliminate the IRegisterCallback shim
This commit is contained in:
66 files changed
+328
-194
No files matched your search
@@ -65,9 +65,6 @@ public class BlockAltar extends BlockMod implements ILexiconable {
|
||||
super(Material.ROCK, LibBlockNames.ALTAR);
|
||||
setHardness(3.5F);
|
||||
setSoundType(SoundType.STONE);
|
||||
setDefaultState(blockState.getBaseState()
|
||||
.withProperty(BotaniaStateProps.ALTAR_VARIANT, AltarVariant.DEFAULT)
|
||||
);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@@ -82,6 +79,12 @@ public class BlockAltar extends BlockMod implements ILexiconable {
|
||||
return new BlockStateContainer(this, BotaniaStateProps.ALTAR_VARIANT);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IBlockState pickDefaultState() {
|
||||
return blockState.getBaseState()
|
||||
.withProperty(BotaniaStateProps.ALTAR_VARIANT, AltarVariant.DEFAULT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetaFromState(IBlockState state) {
|
||||
return state.getValue(BotaniaStateProps.ALTAR_VARIANT).ordinal();
|
||||
|
||||
Reference in new issue
Block a user