Record Class BlockModelDefinition.class_10888

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.BlockModelDefinition.class_10888
Record Components:
models -
Enclosing class:
BlockModelDefinition

@Environment(CLIENT) public static record BlockModelDefinition.class_10888(Map<String,BakedModel.class_10892> models) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/BlockModelDefinition$class_10888
intermediary net/minecraft/class_790$class_10888
official gtl$b
named models
intermediary comp_3814
official b
  • Field Details

    • models

      private final Map<String,BakedModel.class_10892> models
      The field for the models record component.
    • field_57938

      public static final com.mojang.serialization.Codec<BlockModelDefinition.class_10888> field_57938
      Mappings:
      Namespace Name Mixin selector
      named field_57938 Lnet/minecraft/client/render/model/json/BlockModelDefinition$class_10888;field_57938:Lcom/mojang/serialization/Codec;
      intermediary field_57938 Lnet/minecraft/class_790$class_10888;field_57938:Lcom/mojang/serialization/Codec;
      official a Lgtl$b;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • method_68508

      public void method_68508(StateManager<Block,BlockState> stateManager, Supplier<String> supplier, BiConsumer<BlockState,BakedModel.GroupableModel> biConsumer)
      Mappings:
      Namespace Name Mixin selector
      named method_68508 Lnet/minecraft/client/render/model/json/BlockModelDefinition$class_10888;method_68508(Lnet/minecraft/state/StateManager;Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;)V
      intermediary method_68508 Lnet/minecraft/class_790$class_10888;method_68508(Lnet/minecraft/class_2689;Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;)V
      official a Lgtl$b;a(Lebf;Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;)V
    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • models

      public Map<String,BakedModel.class_10892> models()
      Returns the value of the models record component.
      Returns:
      the value of the models record component