Class MetadataProvider

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

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

    • output

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

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

    • MetadataProvider

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

    • add

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

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

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

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

      public static MetadataProvider create(DataOutput output, Text description, FeatureSet requiredFeatures)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/data/MetadataProvider;create(Lnet/minecraft/data/DataOutput;Lnet/minecraft/text/Text;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/data/MetadataProvider;
      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;
      official a Lnp;a(Lly;Lxp;Lcpm;)Lnp;