Class MetadataProvider

java.lang.Object
net.minecraft.data.MetadataProvider
All Implemented Interfaces:
DataProvider

public class MetadataProvider extends Object implements DataProvider
Mappings:
Namespace Name
official ko
intermediary net/minecraft/class_7796
named net/minecraft/data/MetadataProvider
  • Field Details

    • output

      private final DataOutput output
      Mappings:
      Namespace Name Mixin selector
      official d Lko;d:Ljk;
      intermediary field_40619 Lnet/minecraft/class_7796;field_40619:Lnet/minecraft/class_7784;
      named output Lnet/minecraft/data/MetadataProvider;output:Lnet/minecraft/data/DataOutput;
    • metadata

      private final Map<String,Supplier<JsonElement>> metadata
      Mappings:
      Namespace Name Mixin selector
      official e Lko;e:Ljava/util/Map;
      intermediary field_40620 Lnet/minecraft/class_7796;field_40620:Ljava/util/Map;
      named metadata Lnet/minecraft/data/MetadataProvider;metadata:Ljava/util/Map;
  • Constructor Details

    • MetadataProvider

      public MetadataProvider(DataOutput output)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lko;<init>(Ljk;)V
      intermediary <init> Lnet/minecraft/class_7796;<init>(Lnet/minecraft/class_7784;)V
      named <init> Lnet/minecraft/data/MetadataProvider;<init>(Lnet/minecraft/data/DataOutput;)V
  • Method Details

    • add

      public <T> MetadataProvider add(ResourceMetadataSerializer<T> serializer, T metadata)
      Mappings:
      Namespace Name Mixin selector
      official a Lko;a(Lajw;Ljava/lang/Object;)Lko;
      intermediary method_46185 Lnet/minecraft/class_7796;method_46185(Lnet/minecraft/class_7677;Ljava/lang/Object;)Lnet/minecraft/class_7796;
      named add Lnet/minecraft/data/MetadataProvider;add(Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;Ljava/lang/Object;)Lnet/minecraft/data/MetadataProvider;
    • run

      public CompletableFuture<?> run(DataWriter writer)
      Specified by:
      run in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lji;a(Ljg;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_10319 Lnet/minecraft/class_2405;method_10319(Lnet/minecraft/class_7403;)Ljava/util/concurrent/CompletableFuture;
      named run Lnet/minecraft/data/DataProvider;run(Lnet/minecraft/data/DataWriter;)Ljava/util/concurrent/CompletableFuture;
    • getName

      public final String getName()
      Specified by:
      getName in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lji;a()Ljava/lang/String;
      intermediary method_10321 Lnet/minecraft/class_2405;method_10321()Ljava/lang/String;
      named getName Lnet/minecraft/data/DataProvider;getName()Ljava/lang/String;
    • create

      public static MetadataProvider create(DataOutput output, Text description)
      Mappings:
      Namespace Name Mixin selector
      official a Lko;a(Ljk;Lsw;)Lko;
      intermediary method_46812 Lnet/minecraft/class_7796;method_46812(Lnet/minecraft/class_7784;Lnet/minecraft/class_2561;)Lnet/minecraft/class_7796;
      named create Lnet/minecraft/data/MetadataProvider;create(Lnet/minecraft/data/DataOutput;Lnet/minecraft/text/Text;)Lnet/minecraft/data/MetadataProvider;
    • create

      public static MetadataProvider create(DataOutput output, Text description, FeatureSet requiredFeatures)
      Mappings:
      Namespace Name Mixin selector
      official a Lko;a(Ljk;Lsw;Lcaq;)Lko;
      intermediary method_46187 Lnet/minecraft/class_7796;method_46187(Lnet/minecraft/class_7784;Lnet/minecraft/class_2561;Lnet/minecraft/class_7699;)Lnet/minecraft/class_7796;
      named create Lnet/minecraft/data/MetadataProvider;create(Lnet/minecraft/data/DataOutput;Lnet/minecraft/text/Text;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/data/MetadataProvider;