mirror of
https://github.com/GTNewHorizons/Advanced-Botany.git
synced 2026-11-19 19:49:34 +00:00
no message
This commit is contained in:
1 parent
8c1bd5995b
commit
93f114dceb
645 files changed
+59797
No files matched your search
@@ -0,0 +1,41 @@
|
||||
package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import vazkii.botania.api.subtile.signature.SubTileSignature;
|
||||
import vazkii.botania.common.block.BlockSpecialFlower;
|
||||
|
||||
public class ABSubTileSignature extends SubTileSignature {
|
||||
|
||||
String name;
|
||||
IIcon icon;
|
||||
|
||||
public ABSubTileSignature(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void registerIcons(IIconRegister reg) {
|
||||
this.icon = reg.registerIcon("ab:flower_" + this.name);
|
||||
BlockSpecialFlower.icons.put(name, icon);
|
||||
}
|
||||
|
||||
public IIcon getIconForStack(ItemStack item) {
|
||||
return this.icon;
|
||||
}
|
||||
|
||||
public String getUnlocalizedNameForStack(ItemStack item) {
|
||||
return "ab.flower." + this.name;
|
||||
}
|
||||
|
||||
public String getUnlocalizedLoreTextForStack(ItemStack item) {
|
||||
return "tile.ab.flower." + this.name + ".lore";
|
||||
}
|
||||
|
||||
public void addTooltip(ItemStack stack, EntityPlayer player, List<String> tooltip) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user