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 StatValue
static <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 StatValue
blockEfficiency
(Block floor, float multiplier, boolean startZero) static StatValue
static StatValue
static StatValue
static StatValue
static StatValue
bool
(boolean value) static StatValue
boosters
(float reload, float maxUsed, float multiplier, boolean baseReload, arc.func.Boolf<Liquid> filter) static StatValue
content
(arc.struct.Seq<UnlockableContent> list) static <T extends UnlockableContent>
StatValuecontent
(arc.struct.Seq<T> list, arc.func.Boolf<T> check) static StatValue
content
(UnlockableContent content) static arc.scene.ui.layout.Table
displayItem
(Item item) static arc.scene.ui.layout.Table
displayItem
(Item item, int amount) static arc.scene.ui.layout.Table
displayItem
(Item item, int amount, boolean showName) 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.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.static arc.scene.ui.layout.Table
displayLiquid
(Liquid liquid, float amount, boolean perSecond) static StatValue
drillables
(float drillTime, float drillMultiplier, float size, arc.struct.ObjectFloatMap<Item> multipliers, arc.func.Boolf<Block> filter) static String
fixValue
(float value) static StatValue
itemBoosters
(String unit, float timePeriod, float speedBoost, float rangeBoost, ItemStack[] items) static StatValue
itemEffMultiplier
(arc.func.Floatf<Item> efficiency, float timePeriod, arc.func.Boolf<Item> filter) static StatValue
itemEffMultiplier
(arc.func.Floatf<Item> efficiency, float timePeriod, arc.func.Boolf<Item> filter, arc.struct.ObjectFloatMap<Item> itemDurationMultipliers) static StatValue
static StatValue
static StatValue
static StatValue
static StatValue
static StatValue
static StatValue
liquidEffMultiplier
(arc.func.Floatf<Liquid> efficiency, float amount, arc.func.Boolf<Liquid> filter) static StatValue
liquids
(float timePeriod, boolean perSecond, LiquidStack... stacks) static StatValue
liquids
(float timePeriod, LiquidStack... stacks) static StatValue
static StatValue
multiplierModifier
(float value) static StatValue
multiplierModifier
(float value, StatUnit unit) static StatValue
multiplierModifier
(float value, StatUnit unit, boolean merge) static StatValue
static StatValue
static StatValue
percentModifier
(float value) static StatValue
percentModifier
(float value, StatUnit unit) static StatValue
percentModifier
(float value, StatUnit unit, boolean merge) static StatValue
speedBoosters
(String unit, float amount, float speed, boolean strength, arc.func.Boolf<Liquid> filter) static StatValue
static arc.scene.ui.layout.Stack
stack
(UnlockableContent item, int amount) static arc.scene.ui.layout.Stack
stack
(UnlockableContent item, int amount, boolean tooltip) static arc.scene.ui.layout.Stack
static arc.scene.ui.layout.Stack
static arc.scene.ui.layout.Stack
stack
(PayloadStack stack) static StatValue
statusEffects
(arc.struct.Seq<StatusEffect> list) static StatValue
static StatValue
static <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
-
stack
-
stack
-
stack
-
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. -
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
-
content
-
content
public static <T extends UnlockableContent> StatValue content(arc.struct.Seq<T> list, arc.func.Boolf<T> check) -
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, boolean nested, boolean showUnit)
-