Package net.minecraft.data.client.model
Class VariantsBlockStateSupplier
java.lang.Object
net.minecraft.data.client.model.VariantsBlockStateSupplier
- All Implemented Interfaces:
Supplier<JsonElement>
,BlockStateSupplier
public class VariantsBlockStateSupplier extends Object implements BlockStateSupplier
- Mappings:
Namespace Name official iv
intermediary net/minecraft/class_4925
named net/minecraft/data/client/model/VariantsBlockStateSupplier
-
Field Summary
Fields Modifier and Type Field Description private Block
block
private Set<Property<?>>
definedProperties
private List<BlockStateVariantMap>
variantMaps
private List<BlockStateVariant>
variants
-
Constructor Summary
Constructors Modifier Constructor Description private
VariantsBlockStateSupplier(Block block, List<BlockStateVariant> variants)
-
Method Summary
Modifier and Type Method Description VariantsBlockStateSupplier
coordinate(BlockStateVariantMap map)
Appends a block state variant map to this block state information.static VariantsBlockStateSupplier
create(Block block)
static VariantsBlockStateSupplier
create(Block block, BlockStateVariant variant)
static VariantsBlockStateSupplier
create(Block block, BlockStateVariant[] variants)
JsonElement
get()
Block
getBlock()
private static List<BlockStateVariant>
intersect(List<BlockStateVariant> list, List<BlockStateVariant> list2)
-
Field Details
-
block
- Mappings:
Namespace Name Mixin selector official a
Liv;a:Lbwu;
intermediary field_22859
Lnet/minecraft/class_4925;field_22859:Lnet/minecraft/class_2248;
named block
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;block:Lnet/minecraft/block/Block;
-
variants
- Mappings:
Namespace Name Mixin selector official b
Liv;b:Ljava/util/List;
intermediary field_22860
Lnet/minecraft/class_4925;field_22860:Ljava/util/List;
named variants
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;variants:Ljava/util/List;
-
definedProperties
- Mappings:
Namespace Name Mixin selector official c
Liv;c:Ljava/util/Set;
intermediary field_22861
Lnet/minecraft/class_4925;field_22861:Ljava/util/Set;
named definedProperties
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;definedProperties:Ljava/util/Set;
-
variantMaps
- Mappings:
Namespace Name Mixin selector official d
Liv;d:Ljava/util/List;
intermediary field_22862
Lnet/minecraft/class_4925;field_22862:Ljava/util/List;
named variantMaps
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;variantMaps:Ljava/util/List;
-
-
Constructor Details
-
VariantsBlockStateSupplier
- Mappings:
Namespace Name Mixin selector official <init>
Liv;<init>(Lbwu;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_4925;<init>(Lnet/minecraft/class_2248;Ljava/util/List;)V
named <init>
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;<init>(Lnet/minecraft/block/Block;Ljava/util/List;)V
-
-
Method Details
-
coordinate
Appends a block state variant map to this block state information.A block state variant map defines some of the variant settings based on a defined set of properties in the block state, such as the model of the block state is determined by a coordinated map of power and machine type property, and the y rotation determined by a facing property, etc.
- Parameters:
map
- the variant map to contribute property to variant settings mappings to the block state file- Returns:
- this block state file
- Mappings:
Namespace Name Mixin selector official a
Liv;a(Liw;)Liv;
intermediary method_25775
Lnet/minecraft/class_4925;method_25775(Lnet/minecraft/class_4926;)Lnet/minecraft/class_4925;
named coordinate
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;coordinate(Lnet/minecraft/data/client/model/BlockStateVariantMap;)Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;
-
get
- Specified by:
get
in interfaceSupplier<JsonElement>
- Mappings:
Namespace Name Mixin selector official b
Liv;b()Lcom/google/gson/JsonElement;
intermediary method_25780
Lnet/minecraft/class_4925;method_25780()Lcom/google/gson/JsonElement;
named get
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;get()Lcom/google/gson/JsonElement;
-
intersect
private static List<BlockStateVariant> intersect(List<BlockStateVariant> list, List<BlockStateVariant> list2)- Mappings:
Namespace Name Mixin selector official a
Liv;a(Ljava/util/List;Ljava/util/List;)Ljava/util/List;
intermediary method_25777
Lnet/minecraft/class_4925;method_25777(Ljava/util/List;Ljava/util/List;)Ljava/util/List;
named intersect
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;intersect(Ljava/util/List;Ljava/util/List;)Ljava/util/List;
-
getBlock
- Specified by:
getBlock
in interfaceBlockStateSupplier
- Mappings:
Namespace Name Mixin selector official a
Lis;a()Lbwu;
intermediary method_25743
Lnet/minecraft/class_4917;method_25743()Lnet/minecraft/class_2248;
named getBlock
Lnet/minecraft/data/client/model/BlockStateSupplier;getBlock()Lnet/minecraft/block/Block;
-
create
- Mappings:
Namespace Name Mixin selector official a
Liv;a(Lbwu;)Liv;
intermediary method_25769
Lnet/minecraft/class_4925;method_25769(Lnet/minecraft/class_2248;)Lnet/minecraft/class_4925;
named create
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;create(Lnet/minecraft/block/Block;)Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;
-
create
- Mappings:
Namespace Name Mixin selector official a
Liv;a(Lbwu;Liy;)Liv;
intermediary method_25770
Lnet/minecraft/class_4925;method_25770(Lnet/minecraft/class_2248;Lnet/minecraft/class_4935;)Lnet/minecraft/class_4925;
named create
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;create(Lnet/minecraft/block/Block;Lnet/minecraft/data/client/model/BlockStateVariant;)Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;
-
create
- Mappings:
Namespace Name Mixin selector official a
Liv;a(Lbwu;[Liy;)Liv;
intermediary method_25771
Lnet/minecraft/class_4925;method_25771(Lnet/minecraft/class_2248;[Lnet/minecraft/class_4935;)Lnet/minecraft/class_4925;
named create
Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;create(Lnet/minecraft/block/Block;[Lnet/minecraft/data/client/model/BlockStateVariant;)Lnet/minecraft/data/client/model/VariantsBlockStateSupplier;
-