Package mindustry.world.meta
Class StatValues
java.lang.Object
mindustry.world.meta.StatValues
Utilities for displaying certain stats in a table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StatValuestatic <T extends UnlockableContent>
StatValueammo(arc.struct.ObjectMap<T, BulletType> map) static <T extends UnlockableContent>
StatValueammo(arc.struct.ObjectMap<T, BulletType> map, boolean showUnit) static <T extends UnlockableContent>
StatValueammo(arc.struct.ObjectMap<T, BulletType> map, boolean nested, boolean showUnit) static <T extends UnlockableContent>
StatValueammo(arc.struct.ObjectMap<T, BulletType> map, boolean nested, boolean showUnit, String blockName) static <T extends UnlockableContent>
StatValueammo(arc.struct.ObjectMap<T, BulletType> map, boolean showUnit, String blockName) static <T extends UnlockableContent>
StatValueammo(arc.struct.ObjectMap<T, BulletType> map, String blockName) static StatValueblockEfficiency(Block floor, float multiplier, boolean startZero) static StatValuestatic StatValuestatic StatValuestatic StatValuestatic StatValueblocks(Attribute attr, boolean floating, float scale1, float scale2, arc.struct.Seq<ItemStack> outputs, float timePeriod, boolean startZero) static StatValueblocks(Attribute attr, boolean floating, float scaleEff, float scaleAmount, arc.struct.Seq<ItemStack> outputs, float timePeriod, boolean startZero, boolean checkFloors) static StatValuebool(boolean value) static StatValueboosters(float reload, float maxUsed, float multiplier, boolean baseReload, arc.func.Boolf<Liquid> filter) static StatValuecontent(arc.struct.Seq<UnlockableContent> list) static <T extends UnlockableContent>
StatValuecontent(arc.struct.Seq<T> list, arc.func.Boolf<T> check) static <T extends UnlockableContent>
StatValuestatic StatValuecontent(UnlockableContent content) static arc.scene.ui.layout.TabledisplayItem(Item item) static arc.scene.ui.layout.TabledisplayItem(Item item, float amount, float timePeriod, boolean showName) static arc.scene.ui.layout.TabledisplayItem(Item item, int amount) static arc.scene.ui.layout.TabledisplayItem(Item item, int amount, boolean showName) static arc.scene.ui.layout.TabledisplayItem(Item item, int amount, float timePeriod, boolean showName) Displays the item with a "/sec" qualifier based on the time period, in ticks.static arc.scene.ui.layout.TabledisplayItemPercent(Item item, int percent, boolean showName) Displays the item with a "/sec" qualifier based on the time period, in ticks.static arc.scene.ui.layout.TabledisplayLiquid(Liquid liquid, float amount, boolean perSecond) static StatValuedrillables(float drillTime, float drillMultiplier, float size, arc.struct.ObjectFloatMap<Item> multipliers, arc.func.Boolf<Block> filter) static StringfixValue(float value) static StatValueitemBoosters(String unit, float timePeriod, float speedBoost, float rangeBoost, ItemStack[] items) static StatValueitemEffMultiplier(arc.func.Floatf<Item> efficiency, float timePeriod, arc.func.Boolf<Item> filter) static StatValueitemEffMultiplier(arc.func.Floatf<Item> efficiency, float timePeriod, arc.func.Boolf<Item> filter, arc.struct.ObjectFloatMap<Item> itemDurationMultipliers) static StatValuestatic StatValuestatic StatValuestatic StatValuestatic StatValuestatic StatValuestatic StatValueliquidEffMultiplier(arc.func.Floatf<Liquid> efficiency, float amount, arc.func.Boolf<Liquid> filter) static StatValueliquids(float timePeriod, boolean perSecond, LiquidStack... stacks) static StatValueliquids(float timePeriod, LiquidStack... stacks) static StatValuestatic StatValuemultiplierModifier(float value) static StatValuemultiplierModifier(float value, StatUnit unit) static StatValuemultiplierModifier(float value, StatUnit unit, boolean merge) static StatValuestatic StatValuestatic StatValuepercentModifier(float value) static StatValuepercentModifier(float value, StatUnit unit) static StatValuepercentModifier(float value, StatUnit unit, boolean merge) static StatValuespeedBoosters(String unit, float amount, float speed, boolean strength, arc.func.Boolf<Liquid> filter) static StatValuestatic arc.scene.ui.layout.Stackstack(UnlockableContent item, float amount, boolean tooltip) static arc.scene.ui.layout.Stackstack(UnlockableContent item, int amount) static arc.scene.ui.layout.Stackstack(UnlockableContent item, int amount, boolean tooltip) static arc.scene.ui.layout.Stackstatic arc.scene.ui.layout.Stackstatic arc.scene.ui.layout.Stackstack(PayloadStack stack) static StatValuestatusEffects(arc.struct.Seq<StatusEffect> list) static StringstatusText(StatusEffect status, float duration, float chance) Displays the chance for status effectsstatic StatValuestatic StatValuestatic <T extends arc.scene.Element>
TwithTooltip(T element, UnlockableContent content) static <T extends arc.scene.Element>
TwithTooltip(T element, UnlockableContent content, boolean tooltip)
-
Constructor Details
-
StatValues
public StatValues()
-
-
Method Details
-
string
-
bool
-
fixValue
-
squared
-
number
-
number
-
multiplierModifier
-
multiplierModifier
-
multiplierModifier
-
percentModifier
-
percentModifier
-
percentModifier
-
liquid
-
liquids
-
liquids
-
liquids
-
items
-
items
-
items
-
items
-
items
-
displayLiquid
public static arc.scene.ui.layout.Table displayLiquid(Liquid liquid, float amount, boolean perSecond) -
withTooltip
public static <T extends arc.scene.Element> T withTooltip(T element, UnlockableContent content, boolean tooltip) -
withTooltip
-
statusText
Displays the chance for status effects -
stack
-
stack
-
stack
-
stack
public static arc.scene.ui.layout.Stack stack(UnlockableContent item, float amount, boolean tooltip) -
stack
-
stack
-
displayItem
-
displayItem
-
displayItem
-
displayItem
public static arc.scene.ui.layout.Table displayItem(Item item, int amount, float timePeriod, boolean showName) Displays the item with a "/sec" qualifier based on the time period, in ticks. -
displayItem
public static arc.scene.ui.layout.Table displayItem(Item item, float amount, float timePeriod, boolean showName) -
displayItemPercent
public static arc.scene.ui.layout.Table displayItemPercent(Item item, int percent, boolean showName) Displays the item with a "/sec" qualifier based on the time period, in ticks. -
content
-
blockEfficiency
-
blocks
-
blocks
-
blocks
-
blocks
-
content
-
content
public static <T extends UnlockableContent> StatValue content(arc.struct.Seq<T> list, arc.func.Boolf<T> check) -
content
public static <T extends UnlockableContent> StatValue content(arc.struct.Seq<T> list, arc.func.Boolf<T> check, String noneText) -
blocks
-
blocks
-
statusEffects
-
drillables
-
boosters
-
itemEffMultiplier
-
itemEffMultiplier
-
liquidEffMultiplier
-
speedBoosters
-
itemBoosters
-
weapons
-
abilities
-
ammo
-
ammo
public static <T extends UnlockableContent> StatValue ammo(arc.struct.ObjectMap<T, BulletType> map, boolean showUnit) -
ammo
public static <T extends UnlockableContent> StatValue ammo(arc.struct.ObjectMap<T, BulletType> map, String blockName) -
ammo
public static <T extends UnlockableContent> StatValue ammo(arc.struct.ObjectMap<T, BulletType> map, boolean showUnit, String blockName) -
ammo
public static <T extends UnlockableContent> StatValue ammo(arc.struct.ObjectMap<T, BulletType> map, boolean nested, boolean showUnit) -
ammo
public static <T extends UnlockableContent> StatValue ammo(arc.struct.ObjectMap<T, BulletType> map, boolean nested, boolean showUnit, @Nullable String blockName)
-