Record Class BlockModelDefinition

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.BlockModelDefinition
Record Components:
simpleModels -
multipartModel -

@Environment(CLIENT) public record BlockModelDefinition(Optional<BlockModelDefinition.Variants> simpleModels, Optional<BlockModelDefinition.Multipart> multipartModel) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/BlockModelDefinition
intermediary net/minecraft/class_790
official gsy
named simpleModels
intermediary comp_3813
official b
named multipartModel
intermediary comp_3746
official c
  • Field Details Link icon

    • simpleModels Link icon

      private final Optional<BlockModelDefinition.Variants> simpleModels
      The field for the simpleModels record component.
    • multipartModel Link icon

      private final Optional<BlockModelDefinition.Multipart> multipartModel
      The field for the multipartModel record component.
    • LOGGER Link icon

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/render/model/json/BlockModelDefinition;LOGGER:Lorg/slf4j/Logger;
      intermediary field_53162 Lnet/minecraft/class_790;field_53162:Lorg/slf4j/Logger;
      official d Lgsy;d:Lorg/slf4j/Logger;
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<BlockModelDefinition> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/render/model/json/BlockModelDefinition;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56928 Lnet/minecraft/class_790;field_56928:Lcom/mojang/serialization/Codec;
      official a Lgsy;a:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

  • Method Details Link icon

    • load Link icon

      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/render/model/json/BlockModelDefinition;load(Lnet/minecraft/state/StateManager;Ljava/util/function/Supplier;)Ljava/util/Map;
      intermediary method_62327 Lnet/minecraft/class_790;method_62327(Lnet/minecraft/class_2689;Ljava/util/function/Supplier;)Ljava/util/Map;
      official a Lgsy;a(Lebr;Ljava/util/function/Supplier;)Ljava/util/Map;
    • toString Link icon

      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 Link icon

      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 Link icon

      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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • simpleModels Link icon

      public Optional<BlockModelDefinition.Variants> simpleModels()
      Returns the value of the simpleModels record component.
      Returns:
      the value of the simpleModels record component
    • multipartModel Link icon

      public Optional<BlockModelDefinition.Multipart> multipartModel()
      Returns the value of the multipartModel record component.
      Returns:
      the value of the multipartModel record component