mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 22:14:45 +00:00
Eliminate the IRegisterCallback shim
This commit is contained in:
66 files changed
+328
-194
No files matched your search
@@ -58,9 +58,6 @@ public class BlockOpenCrate extends BlockMod implements ILexiconable, IWandable,
|
||||
super(Material.WOOD, LibBlockNames.OPEN_CRATE);
|
||||
setHardness(2.0F);
|
||||
setSoundType(SoundType.WOOD);
|
||||
setDefaultState(blockState.getBaseState()
|
||||
.withProperty(BotaniaStateProps.CRATE_VARIANT, CrateVariant.OPEN)
|
||||
.withProperty(BotaniaStateProps.CRATE_PATTERN, CratePattern.NONE));
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@@ -69,6 +66,13 @@ public class BlockOpenCrate extends BlockMod implements ILexiconable, IWandable,
|
||||
return new BlockStateContainer(this, BotaniaStateProps.CRATE_VARIANT, BotaniaStateProps.CRATE_PATTERN);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IBlockState pickDefaultState() {
|
||||
return blockState.getBaseState()
|
||||
.withProperty(BotaniaStateProps.CRATE_VARIANT, CrateVariant.OPEN)
|
||||
.withProperty(BotaniaStateProps.CRATE_PATTERN, CratePattern.NONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetaFromState(IBlockState state) {
|
||||
return state.getValue(BotaniaStateProps.CRATE_VARIANT).ordinal();
|
||||
|
||||
Reference in new issue
Block a user