Added Feature: #0852 - Add a tooltip to un-despawnable items stating as such.
This commit is contained in:
@@ -34,7 +34,7 @@ public enum ButtonToolTips
|
|||||||
|
|
||||||
LevelType, LevelType_Energy, LevelType_Item, InventoryTweaks, TerminalStyle, TerminalStyle_Full, TerminalStyle_Tall, TerminalStyle_Small,
|
LevelType, LevelType_Energy, LevelType_Item, InventoryTweaks, TerminalStyle, TerminalStyle_Full, TerminalStyle_Tall, TerminalStyle_Small,
|
||||||
|
|
||||||
Stash, StashDesc, Encode, EncodeDescription, Substitutions, SubstitutionsOn, SubstitutionsOff, SubstitutionsDesc, CraftOnly, CraftEither, Craft, Mod;
|
Stash, StashDesc, Encode, EncodeDescription, Substitutions, SubstitutionsOn, SubstitutionsOff, SubstitutionsDesc, CraftOnly, CraftEither, Craft, Mod, DosntDespawn;
|
||||||
|
|
||||||
String root;
|
String root;
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import appeng.api.implementations.items.IGrowableCrystal;
|
|||||||
import appeng.api.recipes.ResolverResult;
|
import appeng.api.recipes.ResolverResult;
|
||||||
import appeng.core.AppEng;
|
import appeng.core.AppEng;
|
||||||
import appeng.core.features.AEFeature;
|
import appeng.core.features.AEFeature;
|
||||||
|
import appeng.core.localization.ButtonToolTips;
|
||||||
import appeng.entity.EntityGrowingCrystal;
|
import appeng.entity.EntityGrowingCrystal;
|
||||||
import appeng.entity.EntityIds;
|
import appeng.entity.EntityIds;
|
||||||
import appeng.items.AEBaseItem;
|
import appeng.items.AEBaseItem;
|
||||||
@@ -76,7 +77,7 @@ public class ItemCrystalSeed extends AEBaseItem implements IGrowableCrystal
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getEntityLifespan( ItemStack itemStack, World world )
|
public int getEntityLifespan(ItemStack itemStack, World world)
|
||||||
{
|
{
|
||||||
return Integer.MAX_VALUE;
|
return Integer.MAX_VALUE;
|
||||||
}
|
}
|
||||||
@@ -125,6 +126,7 @@ public class ItemCrystalSeed extends AEBaseItem implements IGrowableCrystal
|
|||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer p, List l, boolean b)
|
public void addInformation(ItemStack stack, EntityPlayer p, List l, boolean b)
|
||||||
{
|
{
|
||||||
|
l.add( ButtonToolTips.DosntDespawn.getLocal() );
|
||||||
int progress = getProgress( stack ) % SINGLE_OFFSET;
|
int progress = getProgress( stack ) % SINGLE_OFFSET;
|
||||||
l.add( Math.floor( (float) progress / (float) (SINGLE_OFFSET / 100) ) + "%" );
|
l.add( Math.floor( (float) progress / (float) (SINGLE_OFFSET / 100) ) + "%" );
|
||||||
super.addInformation( stack, p, l, b );
|
super.addInformation( stack, p, l, b );
|
||||||
|
|||||||
Reference in New Issue
Block a user