Enum Class GameTestsPerformanceIngredientIndex.Shape
java.lang.Object
java.lang.Enum<GameTestsPerformanceIngredientIndex.Shape>
org.cyclops.integrateddynamics.gametest.GameTestsPerformanceIngredientIndex.Shape
- All Implemented Interfaces:
Serializable, Comparable<GameTestsPerformanceIngredientIndex.Shape>, Constable
- Enclosing class:
GameTestsPerformanceIngredientIndex
public static enum GameTestsPerformanceIngredientIndex.Shape
extends Enum<GameTestsPerformanceIngredientIndex.Shape>
How the indexed instances are spread over item types.
An ItemStack hash that ignores data components puts every stack of the same item in one
bucket, so the shape decides how long the collision chains are. SPREAD is the mildest case
and SINGLE_ITEM the worst.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpread over a few item types only, distinct by data components within each.Spread as SPREAD, but each stack carries a large component payload, so that the cost of hashing the components themselves is visible.GameTestsPerformanceIngredientIndex.MIXED_COMPONENT_FRACTIONof the instances carry a component, the rest are plain.Every instance is a plain stack carrying no data components at all, made distinct by its item and its count.Every instance on one item, distinct only by data components.Spread over every registered item, with component variants to reach the target size. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPREAD
Spread over every registered item, with component variants to reach the target size. -
SINGLE_ITEM
Every instance on one item, distinct only by data components. This is what a storage full of enchanted books or damaged tools looks like. -
FEW_ITEMS
Spread over a few item types only, distinct by data components within each. -
HEAVY_COMPONENTS
Spread as SPREAD, but each stack carries a large component payload, so that the cost of hashing the components themselves is visible. -
PLAIN
Every instance is a plain stack carrying no data components at all, made distinct by its item and its count. This is what a large modpack's storage mostly looks like: many unique items, few component variants. -
MIXED
GameTestsPerformanceIngredientIndex.MIXED_COMPONENT_FRACTIONof the instances carry a component, the rest are plain. A more realistic modpack storage than either PLAIN or SPREAD: bulk material dominates, with a tail of enchanted, damaged or named items.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
benchmarkSuffix
-