Record Class BlockModelDefinition.Variants

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

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

    • models Link icon

      private final Map<String,BlockStateModel.Unbaked> models
      The field for the models record component.
    • CODEC Link icon

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

  • Method Details Link icon

    • load Link icon

      public void load(StateManager<Block,BlockState> stateManager, Supplier<String> idSupplier, BiConsumer<BlockState,BlockStateModel.UnbakedGrouped> callback)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/render/model/json/BlockModelDefinition$Variants;load(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 Lgsy$b;a(Lebr;Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;)V
    • 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 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 Link icon

      Returns the value of the models record component.
      Returns:
      the value of the models record component