This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tooltip changes * typo * return to old formula and switch to bigint * add new item + texture * actually load the item * power formulas * start on stellar plasma integration * rework math * make static * grammar * spotless * astral array fabricator recipe * tooltip work * adjust recipe * fix build errors * address reviews * FluidStackLong * more long fluid stack stuff * fix nei fluid amounts * add brackets * undo wildcard import * rework loop for checking aaf amount * wrong nbt tag * address reviews v2
- Loading branch information
1 parent
5bee46d
commit 804678d
Showing
11 changed files
with
398 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/main/java/com/github/technus/tectech/thing/item/AstralArrayFabricator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.github.technus.tectech.thing.item; | ||
|
||
import static com.github.technus.tectech.Reference.MODID; | ||
import static com.github.technus.tectech.TecTech.creativeTabTecTech; | ||
import static com.github.technus.tectech.thing.CustomItemList.astralArrayFabricator; | ||
import static net.minecraft.util.StatCollector.translateToLocal; | ||
|
||
import java.util.List; | ||
|
||
import net.minecraft.client.renderer.texture.IIconRegister; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.EnumChatFormatting; | ||
|
||
import cpw.mods.fml.common.registry.GameRegistry; | ||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
|
||
public class AstralArrayFabricator extends Item { | ||
|
||
public static AstralArrayFabricator INSTANCE; | ||
|
||
private AstralArrayFabricator() { | ||
setHasSubtypes(false); | ||
setUnlocalizedName("tm.itemAstralArrayFabricator"); | ||
setTextureName(MODID + ":itemAstralArray"); | ||
setCreativeTab(creativeTabTecTech); | ||
} | ||
|
||
@Override | ||
public void addInformation(ItemStack aStack, EntityPlayer ep, List<String> aList, boolean boo) { | ||
aList.add(EnumChatFormatting.GRAY + translateToLocal("item.tm.itemAstralArrayFabricator.desc1")); | ||
aList.add(EnumChatFormatting.GRAY + translateToLocal("item.tm.itemAstralArrayFabricator.desc2")); | ||
aList.add(EnumChatFormatting.GRAY + translateToLocal("item.tm.itemAstralArrayFabricator.desc3")); | ||
aList.add( | ||
EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD | ||
+ translateToLocal("item.tm.itemAstralArrayFabricator.desc0")); | ||
} | ||
|
||
public static void run() { | ||
INSTANCE = new AstralArrayFabricator(); | ||
GameRegistry.registerItem(INSTANCE, INSTANCE.getUnlocalizedName()); | ||
astralArrayFabricator.set(INSTANCE); | ||
} | ||
|
||
@Override | ||
@SideOnly(Side.CLIENT) | ||
public void registerIcons(IIconRegister iconRegister) { | ||
itemIcon = iconRegister.registerIcon(getIconString()); | ||
} | ||
|
||
} |
Oops, something went wrong.