Skip to content

Commit

Permalink
Replace workaround for red roses with complete icon registration
Browse files Browse the repository at this point in the history
  • Loading branch information
codewarrior0 committed Oct 2, 2017
1 parent 70d7dac commit 3448d63
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import vazkii.botania.api.subtile.signature.SubTileSignature;
import vazkii.botania.common.block.BlockSpecialFlower;

import java.util.List;

Expand All @@ -21,6 +22,8 @@ public CustomSubTileSignature(String name) {
@Override
public void registerIcons(IIconRegister register) {
icon = register.registerIcon(Reference.MODID + ":" + this.name);
BlockSpecialFlower.icons.put(name, icon);
BlockSpecialFlower.iconsAlt.put(name, icon);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,4 @@ public int getColor() {
public LexiconEntry getEntry() {
return LexiconData.orechidIgnem;
}

// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidEndiumI").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,4 @@ public Map<String, Integer> getOreMap() {
return BotaniaHelper.tieredOreWeightEnd.get(ORE_TIER);
}

// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidEndiumII").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,4 @@ public Map<String, Integer> getOreMap() {
return BotaniaHelper.tieredOreWeightEnd.get(ORE_TIER);
}

// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidEndiumIII").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,4 @@ public Map<String, Integer> getOreMap() {
return BotaniaHelper.tieredOreWeightEnd.get(ORE_TIER);
}


// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidEndiumIV").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,4 @@ public LexiconEntry getEntry() {
return LexiconData.orechid;
}

// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidI").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,4 @@ public Map<String, Integer> getOreMap() {
return BotaniaHelper.tieredOreWeightOverworld.get(ORE_TIER);
}


// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidII").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,4 @@ public class OrechidIII extends OrechidI {
public Map<String, Integer> getOreMap() {
return BotaniaHelper.tieredOreWeightOverworld.get(ORE_TIER);
}


// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidIII").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,4 @@ public class OrechidIV extends OrechidI {
public Map<String, Integer> getOreMap() {
return BotaniaHelper.tieredOreWeightOverworld.get(ORE_TIER);
}


// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidIV").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,4 @@ public LexiconEntry getEntry() {
return LexiconData.orechidIgnem;
}

// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidIgnemI").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,4 @@ public Map<String, Integer> getOreMap() {
return BotaniaHelper.tieredOreWeightNether.get(ORE_TIER);
}


// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidIgnemII").getIconForStack(null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,4 @@ public Map<String, Integer> getOreMap() {
return BotaniaHelper.tieredOreWeightNether.get(ORE_TIER);
}


// TODO: This is a workaround for getting a red rose cos i haven't been able to track down why
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon() {
return BotaniaAPI.getSignatureForName("evolvedOrechidIgnemIII").getIconForStack(null);
}
}

0 comments on commit 3448d63

Please sign in to comment.