Package net.minecraft.data.client.model
Class BlockStateVariant
java.lang.Object
net.minecraft.data.client.model.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 official iy
intermediary net/minecraft/class_4935
named net/minecraft/data/client/model/BlockStateVariant
-
Field Summary
Fields Modifier and Type Field Description private Map<VariantSetting<?>,VariantSetting.Value>
properties
-
Constructor Summary
Constructors Constructor Description BlockStateVariant()
-
Method Summary
Modifier and Type Method Description static BlockStateVariant
create()
JsonElement
get()
<T> BlockStateVariant
put(VariantSetting<T> key, T value)
static JsonElement
toJson(List<BlockStateVariant> variants)
static BlockStateVariant
union(BlockStateVariant first, BlockStateVariant second)
-
Field Details
-
properties
- Mappings:
Namespace Name Mixin selector official a
Liy;a:Ljava/util/Map;
intermediary field_22884
Lnet/minecraft/class_4935;field_22884:Ljava/util/Map;
named properties
Lnet/minecraft/data/client/model/BlockStateVariant;properties:Ljava/util/Map;
-
-
Constructor Details
-
BlockStateVariant
public BlockStateVariant()
-
-
Method Details
-
put
- Mappings:
Namespace Name Mixin selector official a
Liy;a(Lja;Ljava/lang/Object;)Liy;
intermediary method_25828
Lnet/minecraft/class_4935;method_25828(Lnet/minecraft/class_4938;Ljava/lang/Object;)Lnet/minecraft/class_4935;
named put
Lnet/minecraft/data/client/model/BlockStateVariant;put(Lnet/minecraft/data/client/model/VariantSetting;Ljava/lang/Object;)Lnet/minecraft/data/client/model/BlockStateVariant;
-
create
- Mappings:
Namespace Name Mixin selector official a
Liy;a()Liy;
intermediary method_25824
Lnet/minecraft/class_4935;method_25824()Lnet/minecraft/class_4935;
named create
Lnet/minecraft/data/client/model/BlockStateVariant;create()Lnet/minecraft/data/client/model/BlockStateVariant;
-
union
- Mappings:
Namespace Name Mixin selector official a
Liy;a(Liy;Liy;)Liy;
intermediary method_25827
Lnet/minecraft/class_4935;method_25827(Lnet/minecraft/class_4935;Lnet/minecraft/class_4935;)Lnet/minecraft/class_4935;
named union
Lnet/minecraft/data/client/model/BlockStateVariant;union(Lnet/minecraft/data/client/model/BlockStateVariant;Lnet/minecraft/data/client/model/BlockStateVariant;)Lnet/minecraft/data/client/model/BlockStateVariant;
-
get
- Specified by:
get
in interfaceSupplier<JsonElement>
- Mappings:
Namespace Name Mixin selector official b
Liy;b()Lcom/google/gson/JsonElement;
intermediary method_25830
Lnet/minecraft/class_4935;method_25830()Lcom/google/gson/JsonElement;
named get
Lnet/minecraft/data/client/model/BlockStateVariant;get()Lcom/google/gson/JsonElement;
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Liy;a(Ljava/util/List;)Lcom/google/gson/JsonElement;
intermediary method_25829
Lnet/minecraft/class_4935;method_25829(Ljava/util/List;)Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/data/client/model/BlockStateVariant;toJson(Ljava/util/List;)Lcom/google/gson/JsonElement;
-