Record Class SimpleUnbakedGeometry
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.SimpleUnbakedGeometry
- All Implemented Interfaces:
UnbakedGeometry, UnbakedGeometryExtension, ExtendedUnbakedGeometry
public record SimpleUnbakedGeometry(List<BlockElement> elements)
extends Record
implements UnbakedGeometry, ExtendedUnbakedGeometry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<BlockElement> The field for theelementsrecord component.Fields inherited from interface UnbakedGeometry
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionSimpleUnbakedGeometry(List<BlockElement> elements) Creates an instance of aSimpleUnbakedGeometryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuadCollectionbake(List<BlockElement> elements, TextureSlots textures, ModelBaker modelBaker, ModelState modelState, ModelDebugName name) bake(TextureSlots textures, ModelBaker modelBaker, ModelState modelState, ModelDebugName name, ContextMap additionalProperties) Version ofUnbakedGeometry.bake(TextureSlots, ModelBaker, ModelState, ModelDebugName)that also receives additional properties sourced fromUnbakedModelExtension.fillAdditionalProperties(ContextMap.Builder).elements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface ExtendedUnbakedGeometry
bake
-
Field Details
-
elements
The field for theelementsrecord component.
-
-
Constructor Details
-
SimpleUnbakedGeometry
Creates an instance of aSimpleUnbakedGeometryrecord class.- Parameters:
elements- the value for theelementsrecord component
-
-
Method Details
-
bake
public QuadCollection bake(TextureSlots textures, ModelBaker modelBaker, ModelState modelState, ModelDebugName name, ContextMap additionalProperties) Description copied from interface:UnbakedGeometryExtensionVersion ofUnbakedGeometry.bake(TextureSlots, ModelBaker, ModelState, ModelDebugName)that also receives additional properties sourced fromUnbakedModelExtension.fillAdditionalProperties(ContextMap.Builder).- Specified by:
bakein interfaceExtendedUnbakedGeometry- Specified by:
bakein interfaceUnbakedGeometryExtension
-
bake
public static QuadCollection bake(List<BlockElement> elements, TextureSlots textures, ModelBaker modelBaker, ModelState modelState, ModelDebugName name) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
elements
Returns the value of theelementsrecord component.- Returns:
- the value of the
elementsrecord component
-