mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Eliminate the IRegisterCallback shim
This commit is contained in:
66 files changed
+328
-194
No files matched your search
@@ -51,7 +51,6 @@ public class BlockAltGrass extends BlockMod implements ILexiconable {
|
||||
super(Material.GRASS, LibBlockNames.ALT_GRASS);
|
||||
setHardness(0.6F);
|
||||
setSoundType(SoundType.PLANT);
|
||||
setDefaultState(blockState.getBaseState().withProperty(BotaniaStateProps.ALTGRASS_VARIANT, AltGrassVariant.DRY));
|
||||
setTickRandomly(true);
|
||||
}
|
||||
|
||||
@@ -61,6 +60,11 @@ public class BlockAltGrass extends BlockMod implements ILexiconable {
|
||||
return new BlockStateContainer(this, BotaniaStateProps.ALTGRASS_VARIANT);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IBlockState pickDefaultState() {
|
||||
return blockState.getBaseState().withProperty(BotaniaStateProps.ALTGRASS_VARIANT, AltGrassVariant.DRY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isToolEffective(String type, @Nonnull IBlockState state) {
|
||||
return type.equals("shovel");
|
||||
|
||||
Reference in new issue
Block a user