mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 03:59:45 +00:00
Add Basic Greenhouse
This commit is contained in:
1 parent
c28c1c4298
commit
9a0e5dc3e3
63 files changed
+2527
-164
No files matched your search
@@ -4,7 +4,7 @@ import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
import net.minecraftforge.common.property.IExtendedBlockState;
|
||||
import forestry.api.core.IModelBaker;
|
||||
import forestry.core.models.ModelBlockOverlay;
|
||||
import forestry.farming.blocks.BlockFarm;
|
||||
@@ -32,7 +32,7 @@ public class ModelFarmBlock extends ModelBlockOverlay<BlockFarm> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean bakeWorldBlock(BlockFarm blockFarm, IBlockAccess world, BlockPos pos, IModelBaker baker) {
|
||||
public void bakeWorldBlock(BlockFarm blockFarm, IBlockAccess world, BlockPos pos, IExtendedBlockState stateExtended, IModelBaker baker) {
|
||||
|
||||
TileFarm farm = (TileFarm) world.getTileEntity(pos);
|
||||
|
||||
@@ -45,8 +45,6 @@ public class ModelFarmBlock extends ModelBlockOverlay<BlockFarm> {
|
||||
|
||||
// Set the particle sprite
|
||||
baker.setParticleSprite(textures[0]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private static TextureAtlasSprite[] getSprites(EnumFarmBlockTexture texture) {
|
||||
|
||||
Reference in new issue
Block a user