forked from Buuz135/HotOrNot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item tooltips + configurable temperatures
- Loading branch information
Showing
8 changed files
with
277 additions
and
259 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
modGroup=com.buuz135 | ||
minecraftVersion=1.12 | ||
modVersion=1.1.3 | ||
modVersion=1.1.4 | ||
modBaseName=HotOrNotTFC | ||
forgeVersion=1.12.2-14.23.5.2768 | ||
mcpVersion=snapshot_20180508 |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,35 +1,36 @@ | ||
package com.buuz135.hotornot.item; | ||
|
||
import com.buuz135.hotornot.HotOrNot; | ||
import java.util.List; | ||
import javax.annotation.Nullable; | ||
|
||
import net.minecraft.client.util.ITooltipFlag; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.text.TextComponentTranslation; | ||
import net.minecraft.world.World; | ||
|
||
import javax.annotation.Nullable; | ||
import java.util.List; | ||
import com.buuz135.hotornot.HotOrNot; | ||
|
||
public class MittsItem extends Item | ||
{ | ||
public MittsItem() | ||
{ | ||
setRegistryName(HotOrNot.MOD_ID, "mitts"); | ||
setMaxStackSize(1); | ||
setMaxDamage(HotOrNot.HotConfig.MITTS_DURABILITY); | ||
setUnlocalizedName(HotOrNot.MOD_ID + ".mitts"); | ||
} | ||
public MittsItem() | ||
{ | ||
setRegistryName(HotOrNot.MOD_ID, "mitts"); | ||
setMaxStackSize(1); | ||
setMaxDamage(HotOrNot.HotConfig.MITTS_DURABILITY); | ||
setUnlocalizedName(HotOrNot.MOD_ID + ".mitts"); | ||
} | ||
|
||
@Override | ||
public boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) | ||
{ | ||
return false; | ||
} | ||
@Override | ||
public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) | ||
{ | ||
super.addInformation(stack, worldIn, tooltip, flagIn); | ||
tooltip.add(new TextComponentTranslation("item.hotornot.mitts.tooltip").getUnformattedComponentText()); | ||
} | ||
|
||
@Override | ||
public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) | ||
{ | ||
super.addInformation(stack, worldIn, tooltip, flagIn); | ||
tooltip.add(new TextComponentTranslation("item.hotornot.mitts.tooltip").getUnformattedComponentText()); | ||
} | ||
@Override | ||
public boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) | ||
{ | ||
return false; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
tooltip.hotornot.toohot=Too hot to handle! | ||
tooltip.hotornot.toocold=Too cold to handle! | ||
tooltip.hotornot.toolight=Too light to handle! | ||
tooltip.hotornot.toohot=Too hot to handle! Wear mitts. | ||
tooltip.hotornot.toocold=Too cold to handle! Wear mitts. | ||
tooltip.hotornot.toolight=Too light to handle! Wear mitts. | ||
|
||
item.hotornot.mitts.name=Mitts | ||
item.hotornot.mitts.tooltip=Wear in the offhand to avoid bad effects |
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