Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various bugs, switch creative tabs to self-contained version
- Loading branch information
Showing
6 changed files
with
103 additions
and
79 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
30 changes: 30 additions & 0 deletions
30
src/main/java/tconstruct/common/TConstructCreativeTab.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,30 @@ | ||
package tconstruct.common; | ||
|
||
import net.minecraft.creativetab.CreativeTabs; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
|
||
public class TConstructCreativeTab extends CreativeTabs | ||
{ | ||
ItemStack display; | ||
|
||
public TConstructCreativeTab(String label) | ||
{ | ||
super(label); | ||
} | ||
|
||
public void init (ItemStack stack) | ||
{ | ||
display = stack; | ||
} | ||
|
||
public ItemStack getIconItemStack () | ||
{ | ||
return display; | ||
} | ||
|
||
public Item getTabIconItem () | ||
{ | ||
return display.getItem(); | ||
} | ||
} |
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
Oops, something went wrong.