Fix up Hive Generation

This commit is contained in:
mezz committed 2016-05-06 22:03:26 -07:00
1 parent 6d00d35ae5
commit fed1994838
16 files changed
+146 -131

No files matched your search

@@ -10,6 +10,7 @@
******************************************************************************/
package forestry.apiculture.blocks;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -70,6 +71,10 @@ public class BlockBeeHives extends BlockContainer implements IItemModelRegister,
return getDefaultState().withProperty(HIVE_TYPES, HiveType.VALUES[meta]);
}
public IBlockState getStateForType(@Nonnull HiveType type) {
return getDefaultState().withProperty(HIVE_TYPES, type);
}
@Override
public TileEntity createNewTileEntity(World world, int meta) {
return new TileHive();