类 ModelData.Builder

java.lang.Object
net.neoforged.neoforge.model.data.ModelData.Builder
封闭类:
ModelData

public static final class ModelData.Builder extends Object
  • 字段详细资料

    • HASH_THRESHOLD

      private static final int HASH_THRESHOLD
      Hash 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

      private Map<ModelProperty<?>,Object> properties
  • 构造器详细资料

    • Builder

      private Builder(@Nullable @Nullable ModelData parent)
  • 方法详细资料