Class ModelBuilder.TransformsBuilder
java.lang.Object
net.minecraftforge.client.model.generators.ModelBuilder.TransformsBuilder
- Enclosing class:
- ModelBuilder<T extends ModelBuilder<T>>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ItemTransforms.TransformType,
ModelBuilder<T>.TransformsBuilder.TransformVecBuilder> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) Map<ItemTransforms.TransformType,
ItemTransform> build()
end()
Begin building a new transform for the given perspective.Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
transforms
private final Map<ItemTransforms.TransformType,ModelBuilder<T extends ModelBuilder<T>>.TransformsBuilder.TransformVecBuilder> transforms
-
-
Constructor Details
-
TransformsBuilder
public TransformsBuilder()
-
-
Method Details
-
transform
@Deprecated(forRemoval=true, since="1.18.2") public ModelBuilder<T>.TransformsBuilder.TransformVecBuilder transform(ModelBuilder.Perspective type) Deprecated, for removal: This API element is subject to removal in a future version.Begin building a new transform for the given perspective.- Parameters:
type
- the perspective to create or return the builder for- Returns:
- the builder for the given perspective
- Throws:
NullPointerException
- iftype
isnull
-
transform
public ModelBuilder<T>.TransformsBuilder.TransformVecBuilder transform(ItemTransforms.TransformType type) Begin building a new transform for the given perspective.- Parameters:
type
- the perspective to create or return the builder for- Returns:
- the builder for the given perspective
- Throws:
NullPointerException
- iftype
isnull
-
build
Map<ItemTransforms.TransformType,ItemTransform> build() -
end
-
transform(TransformType)