Record Class BlockBenchModelImpl
java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.model.BlockBenchModelImpl
- All Implemented Interfaces:
BlockBenchModel
public record BlockBenchModelImpl(String name, String identifier, @Nullable String parent, @Nullable String credit, String modelIdentifier, MetadataImpl metadata, boolean ambientOcclusion, boolean frontGuiLight, float[] visibleBox, String variablePlaceholders, List<String> variablePlaceholderButtons, Resolution resolution, List<BlockBenchElementImpl> elements, List<BlockBenchTextureImpl> textures, Map<String,team.unnamed.creative.model.ItemTransform> display, List<OutlinerImpl> outliner, List<BlockbenchAnimationImpl> animations)
extends Record
implements BlockBenchModel
-
Constructor Summary
ConstructorsConstructorDescriptionBlockBenchModelImpl(String name, String identifier, @Nullable String parent, @Nullable String credit, String modelIdentifier, MetadataImpl metadata, boolean ambientOcclusion, boolean frontGuiLight, float[] visibleBox, String variablePlaceholders, List<String> variablePlaceholderButtons, Resolution resolution, List<BlockBenchElementImpl> elements, List<BlockBenchTextureImpl> textures, Map<String, team.unnamed.creative.model.ItemTransform> display, List<OutlinerImpl> outliner, List<BlockbenchAnimationImpl> animations) Creates an instance of aBlockBenchModelImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theambientOcclusionrecord component.Returns the value of theanimationsrecord component.@Nullable Stringcredit()Returns the value of thecreditrecord component.display()Returns the value of thedisplayrecord component.elements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefrontGuiLightrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of themodelIdentifierrecord component.name()Returns the value of thenamerecord component.outliner()Returns the value of theoutlinerrecord component.@Nullable Stringparent()Returns the value of theparentrecord component.Returns the value of theresolutionrecord component.textures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariablePlaceholderButtonsrecord component.Returns the value of thevariablePlaceholdersrecord component.float[]Returns the value of thevisibleBoxrecord component.
-
Constructor Details
-
BlockBenchModelImpl
public BlockBenchModelImpl(String name, String identifier, @Nullable @Nullable String parent, @Nullable @Nullable String credit, String modelIdentifier, MetadataImpl metadata, boolean ambientOcclusion, boolean frontGuiLight, float[] visibleBox, String variablePlaceholders, List<String> variablePlaceholderButtons, Resolution resolution, List<BlockBenchElementImpl> elements, List<BlockBenchTextureImpl> textures, Map<String, team.unnamed.creative.model.ItemTransform> display, List<OutlinerImpl> outliner, List<BlockbenchAnimationImpl> animations) Creates an instance of aBlockBenchModelImplrecord class.- Parameters:
name- the value for thenamerecord componentidentifier- the value for theidentifierrecord componentparent- the value for theparentrecord componentcredit- the value for thecreditrecord componentmodelIdentifier- the value for themodelIdentifierrecord componentmetadata- the value for themetadatarecord componentambientOcclusion- the value for theambientOcclusionrecord componentfrontGuiLight- the value for thefrontGuiLightrecord componentvisibleBox- the value for thevisibleBoxrecord componentvariablePlaceholders- the value for thevariablePlaceholdersrecord componentvariablePlaceholderButtons- the value for thevariablePlaceholderButtonsrecord componentresolution- the value for theresolutionrecord componentelements- the value for theelementsrecord componenttextures- the value for thetexturesrecord componentdisplay- the value for thedisplayrecord componentoutliner- the value for theoutlinerrecord componentanimations- the value for theanimationsrecord component
-
-
Method Details
-
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.- Specified by:
namein interfaceBlockBenchModel- Returns:
- the value of the
namerecord component
-
identifier
Returns the value of theidentifierrecord component.- Specified by:
identifierin interfaceBlockBenchModel- Returns:
- the value of the
identifierrecord component
-
parent
Returns the value of theparentrecord component.- Specified by:
parentin interfaceBlockBenchModel- Returns:
- the value of the
parentrecord component
-
credit
Returns the value of thecreditrecord component.- Specified by:
creditin interfaceBlockBenchModel- Returns:
- the value of the
creditrecord component
-
modelIdentifier
Returns the value of themodelIdentifierrecord component.- Specified by:
modelIdentifierin interfaceBlockBenchModel- Returns:
- the value of the
modelIdentifierrecord component
-
metadata
Returns the value of themetadatarecord component.- Specified by:
metadatain interfaceBlockBenchModel- Returns:
- the value of the
metadatarecord component
-
ambientOcclusion
@SerializedName("ambientocclusion") public boolean ambientOcclusion()Returns the value of theambientOcclusionrecord component.- Specified by:
ambientOcclusionin interfaceBlockBenchModel- Returns:
- the value of the
ambientOcclusionrecord component
-
frontGuiLight
@SerializedName("front_gui_light") public boolean frontGuiLight()Returns the value of thefrontGuiLightrecord component.- Specified by:
frontGuiLightin interfaceBlockBenchModel- Returns:
- the value of the
frontGuiLightrecord component
-
visibleBox
@SerializedName("visible_box") public float[] visibleBox()Returns the value of thevisibleBoxrecord component.- Specified by:
visibleBoxin interfaceBlockBenchModel- Returns:
- the value of the
visibleBoxrecord component
-
variablePlaceholders
Returns the value of thevariablePlaceholdersrecord component.- Specified by:
variablePlaceholdersin interfaceBlockBenchModel- Returns:
- the value of the
variablePlaceholdersrecord component
-
variablePlaceholderButtons
Returns the value of thevariablePlaceholderButtonsrecord component.- Specified by:
variablePlaceholderButtonsin interfaceBlockBenchModel- Returns:
- the value of the
variablePlaceholderButtonsrecord component
-
resolution
Returns the value of theresolutionrecord component.- Specified by:
resolutionin interfaceBlockBenchModel- Returns:
- the value of the
resolutionrecord component
-
elements
Returns the value of theelementsrecord component.- Specified by:
elementsin interfaceBlockBenchModel- Returns:
- the value of the
elementsrecord component
-
textures
Returns the value of thetexturesrecord component.- Specified by:
texturesin interfaceBlockBenchModel- Returns:
- the value of the
texturesrecord component
-
display
Returns the value of thedisplayrecord component.- Specified by:
displayin interfaceBlockBenchModel- Returns:
- the value of the
displayrecord component
-
outliner
Returns the value of theoutlinerrecord component.- Specified by:
outlinerin interfaceBlockBenchModel- Returns:
- the value of the
outlinerrecord component
-
animations
Returns the value of theanimationsrecord component.- Specified by:
animationsin interfaceBlockBenchModel- Returns:
- the value of the
animationsrecord component
-