Class VariantsBlockStateSupplier

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

public class VariantsBlockStateSupplier extends Object implements BlockStateSupplier
Mappings:
Namespace Name
named net/minecraft/data/client/VariantsBlockStateSupplier
intermediary net/minecraft/class_4925
official nu
  • Field Details

    • block

      private final Block block
      Mappings:
      Namespace Name Mixin selector
      named block Lnet/minecraft/data/client/VariantsBlockStateSupplier;block:Lnet/minecraft/block/Block;
      intermediary field_22859 Lnet/minecraft/class_4925;field_22859:Lnet/minecraft/class_2248;
      official a Lnu;a:Ldfy;
    • variants

      private final List<BlockStateVariant> variants
      Mappings:
      Namespace Name Mixin selector
      named variants Lnet/minecraft/data/client/VariantsBlockStateSupplier;variants:Ljava/util/List;
      intermediary field_22860 Lnet/minecraft/class_4925;field_22860:Ljava/util/List;
      official b Lnu;b:Ljava/util/List;
    • definedProperties

      private final Set<Property<?>> definedProperties
      Mappings:
      Namespace Name Mixin selector
      named definedProperties Lnet/minecraft/data/client/VariantsBlockStateSupplier;definedProperties:Ljava/util/Set;
      intermediary field_22861 Lnet/minecraft/class_4925;field_22861:Ljava/util/Set;
      official c Lnu;c:Ljava/util/Set;
    • variantMaps

      private final List<BlockStateVariantMap> variantMaps
      Mappings:
      Namespace Name Mixin selector
      named variantMaps Lnet/minecraft/data/client/VariantsBlockStateSupplier;variantMaps:Ljava/util/List;
      intermediary field_22862 Lnet/minecraft/class_4925;field_22862:Ljava/util/List;
      official d Lnu;d:Ljava/util/List;
  • Constructor Details

    • VariantsBlockStateSupplier

      private VariantsBlockStateSupplier(Block block, List<BlockStateVariant> variants)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/data/client/VariantsBlockStateSupplier;<init>(Lnet/minecraft/block/Block;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_4925;<init>(Lnet/minecraft/class_2248;Ljava/util/List;)V
      official <init> Lnu;<init>(Ldfy;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
      named coordinate Lnet/minecraft/data/client/VariantsBlockStateSupplier;coordinate(Lnet/minecraft/data/client/BlockStateVariantMap;)Lnet/minecraft/data/client/VariantsBlockStateSupplier;
      intermediary method_25775 Lnet/minecraft/class_4925;method_25775(Lnet/minecraft/class_4926;)Lnet/minecraft/class_4925;
      official a Lnu;a(Lnv;)Lnu;
    • get

      public JsonElement get()
      Specified by:
      get in interface Supplier<JsonElement>
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/data/client/VariantsBlockStateSupplier;get()Lcom/google/gson/JsonElement;
      intermediary method_25780 Lnet/minecraft/class_4925;method_25780()Lcom/google/gson/JsonElement;
      official b Lnu;b()Lcom/google/gson/JsonElement;
    • intersect

      private static List<BlockStateVariant> intersect(List<BlockStateVariant> left, List<BlockStateVariant> right)
      Mappings:
      Namespace Name Mixin selector
      named intersect Lnet/minecraft/data/client/VariantsBlockStateSupplier;intersect(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;
      official a Lnu;a(Ljava/util/List;Ljava/util/List;)Ljava/util/List;
    • getBlock

      public Block getBlock()
      Specified by:
      getBlock in interface BlockStateSupplier
      Mappings:
      Namespace Name Mixin selector
      named getBlock Lnet/minecraft/data/client/BlockStateSupplier;getBlock()Lnet/minecraft/block/Block;
      intermediary method_25743 Lnet/minecraft/class_4917;method_25743()Lnet/minecraft/class_2248;
      official a Lnr;a()Ldfy;
    • create

      public static VariantsBlockStateSupplier create(Block block)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/data/client/VariantsBlockStateSupplier;create(Lnet/minecraft/block/Block;)Lnet/minecraft/data/client/VariantsBlockStateSupplier;
      intermediary method_25769 Lnet/minecraft/class_4925;method_25769(Lnet/minecraft/class_2248;)Lnet/minecraft/class_4925;
      official a Lnu;a(Ldfy;)Lnu;
    • create

      public static VariantsBlockStateSupplier create(Block block, BlockStateVariant variant)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/data/client/VariantsBlockStateSupplier;create(Lnet/minecraft/block/Block;Lnet/minecraft/data/client/BlockStateVariant;)Lnet/minecraft/data/client/VariantsBlockStateSupplier;
      intermediary method_25770 Lnet/minecraft/class_4925;method_25770(Lnet/minecraft/class_2248;Lnet/minecraft/class_4935;)Lnet/minecraft/class_4925;
      official a Lnu;a(Ldfy;Lnx;)Lnu;
    • create

      public static VariantsBlockStateSupplier create(Block block, BlockStateVariant[] variants)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/data/client/VariantsBlockStateSupplier;create(Lnet/minecraft/block/Block;[Lnet/minecraft/data/client/BlockStateVariant;)Lnet/minecraft/data/client/VariantsBlockStateSupplier;
      intermediary method_25771 Lnet/minecraft/class_4925;method_25771(Lnet/minecraft/class_2248;[Lnet/minecraft/class_4935;)Lnet/minecraft/class_4925;
      official a Lnu;a(Ldfy;[Lnx;)Lnu;