mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-28 07:55:45 +00:00
Eliminate the IRegisterCallback shim
This commit is contained in:
66 files changed
+328
-194
No files matched your search
@@ -58,7 +58,6 @@ public class BlockEnchanter extends BlockMod implements IWandable, ILexiconable,
|
||||
setResistance(5.0F);
|
||||
setLightLevel(1.0F);
|
||||
setSoundType(SoundType.STONE);
|
||||
setDefaultState(blockState.getBaseState().withProperty(BotaniaStateProps.ENCHANTER_DIRECTION, EnumFacing.Axis.X));
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@@ -67,6 +66,11 @@ public class BlockEnchanter extends BlockMod implements IWandable, ILexiconable,
|
||||
return new BlockStateContainer(this, BotaniaStateProps.ENCHANTER_DIRECTION);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IBlockState pickDefaultState() {
|
||||
return blockState.getBaseState().withProperty(BotaniaStateProps.ENCHANTER_DIRECTION, EnumFacing.Axis.X);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetaFromState(IBlockState state) {
|
||||
switch (state.getValue(BotaniaStateProps.ENCHANTER_DIRECTION)) {
|
||||
|
||||
Reference in new issue
Block a user