Class BlockStateVariant

java.lang.Object
net.minecraft.data.client.BlockStateVariant
All Implemented Interfaces:
Supplier<JsonElement>

public class BlockStateVariant extends Object implements Supplier<JsonElement>
The supplier for a ModelVariant's JSON representation.
Mappings:
Namespace Name
named net/minecraft/data/client/BlockStateVariant
intermediary net/minecraft/class_4935
official ol
  • Field Details

    • properties

      private final Map<VariantSetting<?>,VariantSetting<?>.Value> properties
      Mappings:
      Namespace Name Mixin selector
      named properties Lnet/minecraft/data/client/BlockStateVariant;properties:Ljava/util/Map;
      intermediary field_22884 Lnet/minecraft/class_4935;field_22884:Ljava/util/Map;
      official a Lol;a:Ljava/util/Map;
  • Constructor Details

    • BlockStateVariant

      public BlockStateVariant()
  • Method Details

    • put

      public <T> BlockStateVariant put(VariantSetting<T> key, T value)
      Mappings:
      Namespace Name Mixin selector
      named put Lnet/minecraft/data/client/BlockStateVariant;put(Lnet/minecraft/data/client/VariantSetting;Ljava/lang/Object;)Lnet/minecraft/data/client/BlockStateVariant;
      intermediary method_25828 Lnet/minecraft/class_4935;method_25828(Lnet/minecraft/class_4938;Ljava/lang/Object;)Lnet/minecraft/class_4935;
      official a Lol;a(Lon;Ljava/lang/Object;)Lol;
    • create

      public static BlockStateVariant create()
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/data/client/BlockStateVariant;create()Lnet/minecraft/data/client/BlockStateVariant;
      intermediary method_25824 Lnet/minecraft/class_4935;method_25824()Lnet/minecraft/class_4935;
      official a Lol;a()Lol;
    • union

      public static BlockStateVariant union(BlockStateVariant first, BlockStateVariant second)
      Mappings:
      Namespace Name Mixin selector
      named union Lnet/minecraft/data/client/BlockStateVariant;union(Lnet/minecraft/data/client/BlockStateVariant;Lnet/minecraft/data/client/BlockStateVariant;)Lnet/minecraft/data/client/BlockStateVariant;
      intermediary method_25827 Lnet/minecraft/class_4935;method_25827(Lnet/minecraft/class_4935;Lnet/minecraft/class_4935;)Lnet/minecraft/class_4935;
      official a Lol;a(Lol;Lol;)Lol;
    • get

      public JsonElement get()
      Specified by:
      get in interface Supplier<JsonElement>
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/data/client/BlockStateVariant;get()Lcom/google/gson/JsonElement;
      intermediary method_25830 Lnet/minecraft/class_4935;method_25830()Lcom/google/gson/JsonElement;
      official b Lol;b()Lcom/google/gson/JsonElement;
    • toJson

      public static JsonElement toJson(List<BlockStateVariant> variants)
      Mappings:
      Namespace Name Mixin selector
      named toJson Lnet/minecraft/data/client/BlockStateVariant;toJson(Ljava/util/List;)Lcom/google/gson/JsonElement;
      intermediary method_25829 Lnet/minecraft/class_4935;method_25829(Ljava/util/List;)Lcom/google/gson/JsonElement;
      official a Lol;a(Ljava/util/List;)Lcom/google/gson/JsonElement;