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 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 a BlockBenchModelImpl record class.
      Parameters:
      name - the value for the name record component
      identifier - the value for the identifier record component
      parent - the value for the parent record component
      credit - the value for the credit record component
      modelIdentifier - the value for the modelIdentifier record component
      metadata - the value for the metadata record component
      ambientOcclusion - the value for the ambientOcclusion record component
      frontGuiLight - the value for the frontGuiLight record component
      visibleBox - the value for the visibleBox record component
      variablePlaceholders - the value for the variablePlaceholders record component
      variablePlaceholderButtons - the value for the variablePlaceholderButtons record component
      resolution - the value for the resolution record component
      elements - the value for the elements record component
      textures - the value for the textures record component
      display - the value for the display record component
      outliner - the value for the outliner record component
      animations - the value for the animations record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface BlockBenchModel
      Returns:
      the value of the name record component
    • identifier

      public String identifier()
      Returns the value of the identifier record component.
      Specified by:
      identifier in interface BlockBenchModel
      Returns:
      the value of the identifier record component
    • parent

      @Nullable public @Nullable String parent()
      Returns the value of the parent record component.
      Specified by:
      parent in interface BlockBenchModel
      Returns:
      the value of the parent record component
    • credit

      @Nullable public @Nullable String credit()
      Returns the value of the credit record component.
      Specified by:
      credit in interface BlockBenchModel
      Returns:
      the value of the credit record component
    • modelIdentifier

      @SerializedName("model_identifier") public String modelIdentifier()
      Returns the value of the modelIdentifier record component.
      Specified by:
      modelIdentifier in interface BlockBenchModel
      Returns:
      the value of the modelIdentifier record component
    • metadata

      @SerializedName("meta") public MetadataImpl metadata()
      Returns the value of the metadata record component.
      Specified by:
      metadata in interface BlockBenchModel
      Returns:
      the value of the metadata record component
    • ambientOcclusion

      @SerializedName("ambientocclusion") public boolean ambientOcclusion()
      Returns the value of the ambientOcclusion record component.
      Specified by:
      ambientOcclusion in interface BlockBenchModel
      Returns:
      the value of the ambientOcclusion record component
    • frontGuiLight

      @SerializedName("front_gui_light") public boolean frontGuiLight()
      Returns the value of the frontGuiLight record component.
      Specified by:
      frontGuiLight in interface BlockBenchModel
      Returns:
      the value of the frontGuiLight record component
    • visibleBox

      @SerializedName("visible_box") public float[] visibleBox()
      Returns the value of the visibleBox record component.
      Specified by:
      visibleBox in interface BlockBenchModel
      Returns:
      the value of the visibleBox record component
    • variablePlaceholders

      @SerializedName("variable_placeholders") public String variablePlaceholders()
      Returns the value of the variablePlaceholders record component.
      Specified by:
      variablePlaceholders in interface BlockBenchModel
      Returns:
      the value of the variablePlaceholders record component
    • variablePlaceholderButtons

      @SerializedName("variable_placeholder_buttons") public List<String> variablePlaceholderButtons()
      Returns the value of the variablePlaceholderButtons record component.
      Specified by:
      variablePlaceholderButtons in interface BlockBenchModel
      Returns:
      the value of the variablePlaceholderButtons record component
    • resolution

      public Resolution resolution()
      Returns the value of the resolution record component.
      Specified by:
      resolution in interface BlockBenchModel
      Returns:
      the value of the resolution record component
    • elements

      public List<BlockBenchElementImpl> elements()
      Returns the value of the elements record component.
      Specified by:
      elements in interface BlockBenchModel
      Returns:
      the value of the elements record component
    • textures

      public List<BlockBenchTextureImpl> textures()
      Returns the value of the textures record component.
      Specified by:
      textures in interface BlockBenchModel
      Returns:
      the value of the textures record component
    • display

      public Map<String,team.unnamed.creative.model.ItemTransform> display()
      Returns the value of the display record component.
      Specified by:
      display in interface BlockBenchModel
      Returns:
      the value of the display record component
    • outliner

      public List<OutlinerImpl> outliner()
      Returns the value of the outliner record component.
      Specified by:
      outliner in interface BlockBenchModel
      Returns:
      the value of the outliner record component
    • animations

      public List<BlockbenchAnimationImpl> animations()
      Returns the value of the animations record component.
      Specified by:
      animations in interface BlockBenchModel
      Returns:
      the value of the animations record component