mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 03:49:07 +00:00
Fixed block alveary
This commit is contained in:
1 parent
a408df86ed
commit
b9dfb8ee31
1 file changed
+9
@@ -5,6 +5,7 @@ import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.ITileEntityProvider;
|
||||
import net.minecraft.block.SoundType;
|
||||
import net.minecraft.block.properties.PropertyEnum;
|
||||
import net.minecraft.block.state.BlockStateContainer;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
@@ -33,6 +34,9 @@ public class BlockAlveary extends Block implements ITileEntityProvider {
|
||||
super(new MaterialBeehive(false));
|
||||
setCreativeTab(Tabs.tabApiculture);
|
||||
setRegistryName("alveary");
|
||||
setHardness(1);
|
||||
setHarvestLevel("axe", 0);
|
||||
setSoundType(SoundType.WOOD);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -90,4 +94,9 @@ public class BlockAlveary extends Block implements ITileEntityProvider {
|
||||
meta = meta >= 0 && meta < EnumAlvearyLogicType.VALUES.length ? meta : 0;
|
||||
return getDefaultState().withProperty(TYPE, EnumAlvearyLogicType.VALUES[meta]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int damageDropped(IBlockState state) {
|
||||
return getMetaFromState(state);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user