mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 12:42:50 +00:00
Eliminate the IRegisterCallback shim
This commit is contained in:
66 files changed
+328
-194
No files matched your search
@@ -57,10 +57,6 @@ public class BlockPrism extends BlockMod implements IManaTrigger, ILexiconable,
|
||||
setHardness(0.3F);
|
||||
setSoundType(SoundType.GLASS);
|
||||
setLightLevel(1.0F);
|
||||
setDefaultState(blockState.getBaseState()
|
||||
.withProperty(BotaniaStateProps.POWERED, false)
|
||||
.withProperty(BotaniaStateProps.HAS_LENS, false)
|
||||
);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@@ -75,6 +71,13 @@ public class BlockPrism extends BlockMod implements IManaTrigger, ILexiconable,
|
||||
return new BlockStateContainer(this, BotaniaStateProps.POWERED, BotaniaStateProps.HAS_LENS);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IBlockState pickDefaultState() {
|
||||
return blockState.getBaseState()
|
||||
.withProperty(BotaniaStateProps.POWERED, false)
|
||||
.withProperty(BotaniaStateProps.HAS_LENS, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetaFromState(IBlockState state) {
|
||||
return (state.getValue(BotaniaStateProps.POWERED) ? 8 : 0)
|
||||
|
||||
Reference in new issue
Block a user