This repository has been archived by the owner on Jan 25, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kevin68
committed
Feb 27, 2014
1 parent
13dedae
commit b58b02e
Showing
3 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/main/java/fr/minecraftforgefrance/tutoriel/common/ItemTutoriel.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,34 @@ | ||
/** | ||
* This work is made available under the terms of the Creative Commons Attribution License: | ||
* http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en | ||
* | ||
* Cette œuvre est mise à disposition selon les termes de la Licence Creative Commons Attribution: | ||
* http://creativecommons.org/licenses/by-nc-sa/4.0/deed.fr | ||
*/ | ||
package fr.minecraftforgefrance.tutoriel.common; | ||
|
||
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.IIcon; | ||
|
||
public class ItemTutoriel extends Item | ||
{ | ||
public ItemTutoriel() | ||
{ | ||
super(); | ||
} | ||
|
||
@Override | ||
public void registerIcons(IIconRegister iconregister) | ||
{ | ||
this.itemIcon = iconregister.registerIcon(ModTutoriel.MODID + ":itemtutoriel"); | ||
} | ||
|
||
@Override | ||
public IIcon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) | ||
{ | ||
return this.itemIcon; | ||
} | ||
} |
24 changes: 15 additions & 9 deletions
24
src/main/java/fr/minecraftforgefrance/tutoriel/common/ModTutoriel.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
Binary file added
BIN
+9.77 KB
src/main/resources/assets/modtutoriel/textures/items/itemtutoriel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.