Skip to content

Commit

Permalink
Add custom textures for the Sugar Beet crop (#85)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robertz <[email protected]>
  • Loading branch information
Juknum and Dream-Master authored Jan 11, 2025
1 parent 5c03b4c commit e114682
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package com.github.bartimaeusnek.cropspp.crops.cpp;

import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;

import com.github.bartimaeusnek.cropspp.abstracts.BasicFoodCrop;
import com.github.bartimaeusnek.cropspp.items.CppItems;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ic2.api.crops.ICropTile;

public class SugarBeetCrop extends BasicFoodCrop {
Expand Down Expand Up @@ -37,17 +33,6 @@ public ItemStack getGain(ICropTile var1) {
return new ItemStack(CppItems.CppBerries, 1, 1);
}

@SideOnly(Side.CLIENT)
public void registerSprites(IIconRegister iconRegister) {
textures = new IIcon[maxSize()];

for (int i = 1; i <= textures.length - 1; i++) {
// ic2:crop/blockCrop.NAME.n is the legacy name for backwards compatiblity
textures[i - 1] = iconRegister.registerIcon("ic2:crop/carrots." + i);
}
textures[2] = iconRegister.registerIcon("bpp:crop/blockCrop.Wild Carrots.3");
}

@Override
public ItemStack getDisplayItem() {
return new ItemStack(CppItems.CppBerries, 1, 1);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e114682

Please sign in to comment.