Flower offset added

This commit is contained in:
Kino 2017-03-03 19:39:51 -05:00
parent ff6516eaa1
commit 7de30e4d9b

View file

@ -8,6 +8,8 @@ import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import com.legacy.aether.server.blocks.BlocksAether;
@ -22,7 +24,13 @@ public class BlockAetherFlower extends BlockBush
this.setTickRandomly(true);
this.setSoundType(SoundType.PLANT);
this.FLOWER_AABB = new AxisAlignedBB(0.5F - 0.2F, 0.0F, 0.5F - 0.2F, 0.5F + 0.2F, 0.2F * 3.0F, 0.5F + 0.2F);
}
}
@SideOnly(Side.CLIENT)
public Block.EnumOffsetType getOffsetType()
{
return Block.EnumOffsetType.XZ;
}
@Override
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)