mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-23 21:39:51 +00:00
Move Forestry GUI icons to a new TextureMap
This commit is contained in:
1 parent
d04713339c
commit
4c8d5e2f43
21 files changed
+347
-104
No files matched your search
@@ -10,14 +10,14 @@
|
||||
******************************************************************************/
|
||||
package forestry.farming.gui;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import forestry.core.gui.ledgers.Ledger;
|
||||
import forestry.core.gui.ledgers.LedgerManager;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.core.utils.StringUtil;
|
||||
import forestry.core.utils.Translator;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
|
||||
public class FarmLedger extends Ledger {
|
||||
private final IFarmLedgerDelegate delegate;
|
||||
@@ -45,8 +45,7 @@ public class FarmLedger extends Ledger {
|
||||
Minecraft minecraft = Proxies.common.getClientInstance();
|
||||
TextureMap textureMapBlocks = minecraft.getTextureMapBlocks();
|
||||
TextureAtlasSprite textureAtlasSprite = textureMapBlocks.getAtlasSprite("minecraft:items/bucket_water");
|
||||
|
||||
drawSprite(textureAtlasSprite, xIcon, y);
|
||||
drawSprite(TextureMap.LOCATION_BLOCKS_TEXTURE, textureAtlasSprite, xIcon, y);
|
||||
y += 4;
|
||||
|
||||
if (!isFullyOpened()) {
|
||||
|
||||
Reference in new issue
Block a user