类 ModelData.Builder
java.lang.Object
net.neoforged.neoforge.model.data.ModelData.Builder
- 封闭类:
ModelData
-
字段概要
字段修饰符和类型字段说明private static final int
Hash maps are slower than array maps for *extremely* small maps (empty maps or singletons are the most extreme examples).private Map
<ModelProperty<?>, Object> -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
HASH_THRESHOLD
private static final int HASH_THRESHOLDHash maps are slower than array maps for *extremely* small maps (empty maps or singletons are the most extreme examples). Many block entities/models only use a single model data property, which means the overhead of hashing is quite wasteful. However, we do want to support any number of properties with reasonable performance. Therefore, we use an array map until the number of properties reaches this threshold, at which point we convert it to a hash map.- 另请参阅:
-
properties
-
-
构造器详细资料
-
Builder
-
-
方法详细资料
-
with
-
build
-