Record Class BlueprintChildren.BlueprintGroup
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.BlueprintChildren.BlueprintGroup
- Record Components:
name- group nameorigin- originrotation- rotationchildren- childrenvisibility- visibility
- All Implemented Interfaces:
BlueprintChildren
- Enclosing interface:
BlueprintChildren
public static record BlueprintChildren.BlueprintGroup(@NotNull BoneName name, @NotNull Float3 origin, @NotNull Float3 rotation, @NotNull List<BlueprintChildren> children, boolean visibility)
extends Record
implements BlueprintChildren
Blueprint group
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.data.blueprint.BlueprintChildren
BlueprintChildren.BlueprintElement, BlueprintChildren.BlueprintGroup -
Constructor Summary
ConstructorsConstructorDescriptionBlueprintGroup(@NotNull BoneName name, @NotNull Float3 origin, @NotNull Float3 rotation, @NotNull List<BlueprintChildren> children, boolean visibility) Creates an instance of aBlueprintGrouprecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable BlueprintJsonbuildLegacyJson(boolean skipLog, float scale, @NotNull ModelBlueprint parent) Gets blueprint legacy json@Nullable @Unmodifiable List<BlueprintJson> buildModernJson(float scale, @NotNull ModelBlueprint parent) Gets blueprint modern json@NotNull List<BlueprintChildren> children()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable NamedBoundingBoxhitBox()Gets single hit-box@NotNull StringjsonName(@NotNull ModelBlueprint parent) Gets JSON name of blueprint.@NotNull BoneNamename()Returns the value of thenamerecord component.@NotNull Float3origin()Returns the value of theoriginrecord component.@NotNull Float3rotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevisibilityrecord component.
-
Constructor Details
-
BlueprintGroup
public BlueprintGroup(@NotNull @NotNull BoneName name, @NotNull @NotNull Float3 origin, @NotNull @NotNull Float3 rotation, @NotNull @NotNull List<BlueprintChildren> children, boolean visibility) Creates an instance of aBlueprintGrouprecord class.- Parameters:
name- the value for thenamerecord componentorigin- the value for theoriginrecord componentrotation- the value for therotationrecord componentchildren- the value for thechildrenrecord componentvisibility- the value for thevisibilityrecord component
-
-
Method Details
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
jsonName
Gets JSON name of blueprint.- Parameters:
parent- parent- Returns:
- name
-
buildLegacyJson
@Nullable public @Nullable BlueprintJson buildLegacyJson(boolean skipLog, float scale, @NotNull @NotNull ModelBlueprint parent) Gets blueprint legacy json- Parameters:
skipLog- skip logscale- scaleparent- parent- Returns:
- json
-
buildModernJson
@Nullable public @Nullable @Unmodifiable List<BlueprintJson> buildModernJson(float scale, @NotNull @NotNull ModelBlueprint parent) Gets blueprint modern json- Parameters:
scale- scaleparent- parent- Returns:
- json
-
hitBox
Gets single hit-box- Returns:
- bounding box
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-
visibility
public boolean visibility()Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-