mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
First 1.8.9 Version
This commit is contained in:
1 parent
d35cc1df09
commit
5a3850c264
1657 files changed
+26844
-13269
No files matched your search
@@ -10,10 +10,13 @@
|
||||
******************************************************************************/
|
||||
package forestry.farming.gui;
|
||||
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.resources.model.IBakedModel;
|
||||
import net.minecraft.init.Items;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import forestry.core.gui.ledgers.Ledger;
|
||||
import forestry.core.gui.ledgers.LedgerManager;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.core.utils.StringUtil;
|
||||
|
||||
public class FarmLedger extends Ledger {
|
||||
@@ -39,7 +42,9 @@ public class FarmLedger extends Ledger {
|
||||
int xHeader = x + 22;
|
||||
|
||||
// Draw icon
|
||||
drawIcon(Items.water_bucket.getIconFromDamage(0), xIcon, y);
|
||||
IBakedModel iBakedModel = Proxies.common.getClientInstance().getRenderItem().getItemModelMesher().getItemModel(new ItemStack(Items.water_bucket));
|
||||
TextureAtlasSprite textureAtlasSprite = Proxies.common.getClientInstance().getTextureMapBlocks().getAtlasSprite(iBakedModel.getParticleTexture().getIconName());
|
||||
drawSprite(textureAtlasSprite, xIcon, y);
|
||||
y += 4;
|
||||
|
||||
if (!isFullyOpened()) {
|
||||
|
||||
Reference in new issue
Block a user