Package mindustry.world.meta
Class StatValues
java.lang.Object
mindustry.world.meta.StatValues
Utilities for displaying certain stats in a table.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StatValue
static <T extends UnlockableContent>
StatValueammo
(ObjectMap<T, BulletType> map) static <T extends UnlockableContent>
StatValueammo
(ObjectMap<T, BulletType> map, boolean showUnit) static <T extends UnlockableContent>
StatValueammo
(ObjectMap<T, BulletType> map, int indent, 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
static StatValue
content
(Seq<UnlockableContent> list) static <T extends UnlockableContent>
StatValuestatic StatValue
content
(UnlockableContent content) static StatValue
drillables
(float drillTime, float drillMultiplier, float size, ObjectFloatMap<Item> multipliers, Boolf<Block> filter) static String
fixValue
(float value) static StatValue
itemBoosters
(String unit, float timePeriod, float speedBoost, float rangeBoost, ItemStack[] items, Boolf<Item> filter) static StatValue
static StatValue
static StatValue
static StatValue
static StatValue
static StatValue
static StatValue
liquids
(float timePeriod, boolean perSecond, LiquidStack... stacks) static StatValue
liquids
(float timePeriod, LiquidStack... stacks) static StatValue
static StatValue
static StatValue
static StatValue
speedBoosters
(String unit, float amount, float speed, boolean strength, Boolf<Liquid> filter) static StatValue
static StatValue
statusEffects
(Seq<StatusEffect> list) static StatValue
static StatValue
-
Constructor Details
-
StatValues
public StatValues()
-
-
Method Details
-
string
-
bool
-
fixValue
-
squared
-
number
-
number
-
liquid
-
liquids
-
liquids
-
liquids
-
items
-
items
-
items
-
items
-
items
-
content
-
blockEfficiency
-
blocks
-
blocks
-
content
-
content
-
blocks
-
blocks
-
statusEffects
-
drillables
public static StatValue drillables(float drillTime, float drillMultiplier, float size, ObjectFloatMap<Item> multipliers, Boolf<Block> filter) -
boosters
-
speedBoosters
-
itemBoosters
-
weapons
-
abilities
-
ammo
-
ammo
public static <T extends UnlockableContent> StatValue ammo(ObjectMap<T, BulletType> map, boolean showUnit) -
ammo
public static <T extends UnlockableContent> StatValue ammo(ObjectMap<T, BulletType> map, int indent, boolean showUnit)
-