Uses of Class
net.minecraft.data.client.BlockStateVariant
-
Uses of BlockStateVariant in net.minecraft.data.client
Modifier and TypeFieldDescriptionstatic final List
<com.mojang.datafixers.util.Pair<Direction, Function<Identifier, BlockStateVariant>>> BlockStateModelGenerator.CONNECTION_VARIANT_FUNCTIONS
A map from a boolean property about connection on one direction to a function that creates a block state variant for connection on that direction with a given connection model.private final Map
<PropertiesMap, List<BlockStateVariant>> BlockStateVariantMap.variants
private final List
<BlockStateVariant> MultipartBlockStateSupplier.Multipart.variants
private final List
<BlockStateVariant> VariantsBlockStateSupplier.variants
Modifier and TypeMethodDescriptionprivate BlockStateVariant
BlockStateModelGenerator.addJigsawOrientationToVariant
(Orientation orientation, BlockStateVariant variant) static BlockStateVariant
BlockStateVariant.create()
private static BlockStateVariant[]
BlockStateModelGenerator.createModelVariantWithRandomHorizontalRotations
(Identifier modelId) private BlockStateVariant
BlockStateModelGenerator.getDripstoneVariant
(Direction direction, Thickness thickness) BlockStateVariant.put
(VariantSetting<T> key, T value) static BlockStateVariant
BlockStateVariant.union
(BlockStateVariant first, BlockStateVariant second) Modifier and TypeMethodDescriptionprivate static List
<BlockStateVariant> BlockStateModelGenerator.buildBlockStateVariants
(List<Identifier> modelIds, UnaryOperator<BlockStateVariant> processor) private List
<BlockStateVariant> BlockStateModelGenerator.getBambooBlockStateVariants
(int age) (package private) Map
<PropertiesMap, List<BlockStateVariant>> BlockStateVariantMap.getVariants()
private static List
<BlockStateVariant> VariantsBlockStateSupplier.intersect
(List<BlockStateVariant> left, List<BlockStateVariant> right) Modifier and TypeMethodDescriptionprivate BlockStateVariant
BlockStateModelGenerator.addJigsawOrientationToVariant
(Orientation orientation, BlockStateVariant variant) static VariantsBlockStateSupplier
VariantsBlockStateSupplier.create
(Block block, BlockStateVariant variant) static VariantsBlockStateSupplier
VariantsBlockStateSupplier.create
(Block block, BlockStateVariant[] variants) BlockStateVariantMap.DoubleProperty.register
(T1 firstValue, T2 secondValue, BlockStateVariant variant) BlockStateVariantMap.QuadrupleProperty.register
(T1 firstValue, T2 secondValue, T3 thirdValue, T4 fourthValue, BlockStateVariant variant) BlockStateVariantMap.QuintupleProperty.register
(T1 firstValue, T2 secondValue, T3 thirdValue, T4 fourthValue, T5 fifthValue, BlockStateVariant variant) BlockStateVariantMap.SingleProperty.register
(T1 value, BlockStateVariant variant) BlockStateVariantMap.TripleProperty.register
(T1 firstValue, T2 secondValue, T3 thirdValue, BlockStateVariant variant) private void
BlockStateModelGenerator.registerTopSoil
(Block topSoil, Identifier modelId, BlockStateVariant snowyVariant) static BlockStateVariant
BlockStateVariant.union
(BlockStateVariant first, BlockStateVariant second) MultipartBlockStateSupplier.with
(BlockStateVariant variant) MultipartBlockStateSupplier.with
(When condition, BlockStateVariant variant) MultipartBlockStateSupplier.with
(When condition, BlockStateVariant[] variants) Modifier and TypeMethodDescriptionprivate static List
<BlockStateVariant> BlockStateModelGenerator.buildBlockStateVariants
(List<Identifier> modelIds, UnaryOperator<BlockStateVariant> processor) private static List
<BlockStateVariant> VariantsBlockStateSupplier.intersect
(List<BlockStateVariant> left, List<BlockStateVariant> right) BlockStateVariantMap.DoubleProperty.register
(BiFunction<T1, T2, BlockStateVariant> variantFactory) BlockStateVariantMap.DoubleProperty.register
(T1 firstValue, T2 secondValue, List<BlockStateVariant> variants) BlockStateVariantMap.QuadrupleProperty.register
(BlockStateVariantMap.QuadFunction<T1, T2, T3, T4, BlockStateVariant> variantFactory) BlockStateVariantMap.QuadrupleProperty.register
(T1 firstValue, T2 secondValue, T3 thirdValue, T4 fourthValue, List<BlockStateVariant> variants) BlockStateVariantMap.QuintupleProperty.register
(BlockStateVariantMap.QuintFunction<T1, T2, T3, T4, T5, BlockStateVariant> variantFactory) BlockStateVariantMap.QuintupleProperty.register
(T1 firstValue, T2 secondValue, T3 thirdValue, T4 fourthValue, T5 fifthValue, List<BlockStateVariant> variants) protected void
BlockStateVariantMap.register
(PropertiesMap condition, List<BlockStateVariant> possibleVariants) BlockStateVariantMap.SingleProperty.register
(Function<T1, BlockStateVariant> variantFactory) BlockStateVariantMap.SingleProperty.register
(T1 value, List<BlockStateVariant> variants) BlockStateVariantMap.TripleProperty.register
(BlockStateVariantMap.TriFunction<T1, T2, T3, BlockStateVariant> variantFactory) BlockStateVariantMap.TripleProperty.register
(T1 firstValue, T2 secondValue, T3 thirdValue, List<BlockStateVariant> variants) BlockStateVariantMap.DoubleProperty.registerVariants
(BiFunction<T1, T2, List<BlockStateVariant>> variantsFactory) BlockStateVariantMap.QuadrupleProperty.registerVariants
(BlockStateVariantMap.QuadFunction<T1, T2, T3, T4, List<BlockStateVariant>> variantFactory) BlockStateVariantMap.QuintupleProperty.registerVariants
(BlockStateVariantMap.QuintFunction<T1, T2, T3, T4, T5, List<BlockStateVariant>> variantFactory) BlockStateVariantMap.SingleProperty.registerVariants
(Function<T1, List<BlockStateVariant>> variantFactory) BlockStateVariantMap.TripleProperty.registerVariants
(BlockStateVariantMap.TriFunction<T1, T2, T3, List<BlockStateVariant>> variantFactory) static JsonElement
BlockStateVariant.toJson
(List<BlockStateVariant> variants) MultipartBlockStateSupplier.with
(List<BlockStateVariant> variants) MultipartBlockStateSupplier.with
(When condition, List<BlockStateVariant> variants) ModifierConstructorDescription(package private)
ConditionalMultipart
(When when, List<BlockStateVariant> variants) (package private)
Multipart
(List<BlockStateVariant> variants) private
VariantsBlockStateSupplier
(Block block, List<BlockStateVariant> variants)