Class StructureFeatureChildrenPoolElementFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.StructureFeatureChildrenPoolElementFix

public class StructureFeatureChildrenPoolElementFix extends com.mojang.datafixers.DataFix
A fix that updates a few children pool element features with complex configurations to simple ID strings within structure features.

This is known as SavedDataFeaturePoolElementFix in the literal strings.

Mappings:
Namespace Name
named net/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix
intermediary net/minecraft/class_5947
official bje
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Pattern
     
    private static final Set<String>
     
    private static final Set<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    StructureFeatureChildrenPoolElementFix(com.mojang.datafixers.schemas.Schema outputSchema)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static <T> com.mojang.serialization.OptionalDynamic<T>
    findValueAt(com.mojang.serialization.Dynamic<T> root, String[] pathParts)
     
    com.mojang.datafixers.TypeRewriteRule
     
    private static Stream<? extends com.mojang.serialization.Dynamic<?>>
    mapChildren(Stream<? extends com.mojang.serialization.Dynamic<?>> children)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateChildren(com.mojang.serialization.Dynamic<T> children)
     
    private static Optional<String>
    updateFeature(String type, String name, String stateProviderType, String stateProviderStateName, String stateProviderFirstEntryName, String foliagePlacerType, String leavesProviderStateName)
     
    protected static com.mojang.serialization.Dynamic<?>
    updatePoolElementFeature(com.mojang.serialization.Dynamic<?> feature)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateStructureFeature(com.mojang.serialization.Dynamic<T> structureFeature)
     

    Methods inherited from class com.mojang.datafixers.DataFix

    checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ARRAY_INDEX_PATTERN

      private static final Pattern ARRAY_INDEX_PATTERN
      Mappings:
      Namespace Name Mixin selector
      named ARRAY_INDEX_PATTERN Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;ARRAY_INDEX_PATTERN:Ljava/util/regex/Pattern;
      intermediary field_29545 Lnet/minecraft/class_5947;field_29545:Ljava/util/regex/Pattern;
      official a Lbje;a:Ljava/util/regex/Pattern;
    • TARGET_CHILDREN_IDS

      private static final Set<String> TARGET_CHILDREN_IDS
      Mappings:
      Namespace Name Mixin selector
      named TARGET_CHILDREN_IDS Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;TARGET_CHILDREN_IDS:Ljava/util/Set;
      intermediary field_29546 Lnet/minecraft/class_5947;field_29546:Ljava/util/Set;
      official b Lbje;b:Ljava/util/Set;
    • TARGET_FEATURES

      private static final Set<String> TARGET_FEATURES
      Mappings:
      Namespace Name Mixin selector
      named TARGET_FEATURES Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;TARGET_FEATURES:Ljava/util/Set;
      intermediary field_29547 Lnet/minecraft/class_5947;field_29547:Ljava/util/Set;
      official c Lbje;c:Ljava/util/Set;
  • Constructor Details

    • StructureFeatureChildrenPoolElementFix

      public StructureFeatureChildrenPoolElementFix(com.mojang.datafixers.schemas.Schema outputSchema)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      intermediary <init> Lnet/minecraft/class_5947;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      official <init> Lbje;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
  • Method Details

    • makeRule

      public com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • updateStructureFeature

      private static <T> com.mojang.serialization.Dynamic<T> updateStructureFeature(com.mojang.serialization.Dynamic<T> structureFeature)
      Mappings:
      Namespace Name Mixin selector
      named updateStructureFeature Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;updateStructureFeature(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_34692 Lnet/minecraft/class_5947;method_34692(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      official b Lbje;b(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • updateChildren

      private static <T> com.mojang.serialization.Dynamic<T> updateChildren(com.mojang.serialization.Dynamic<T> children)
      Mappings:
      Namespace Name Mixin selector
      named updateChildren Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;updateChildren(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_34693 Lnet/minecraft/class_5947;method_34693(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      official c Lbje;c(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • mapChildren

      private static Stream<? extends com.mojang.serialization.Dynamic<?>> mapChildren(Stream<? extends com.mojang.serialization.Dynamic<?>> children)
      Mappings:
      Namespace Name Mixin selector
      named mapChildren Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;mapChildren(Ljava/util/stream/Stream;)Ljava/util/stream/Stream;
      intermediary method_34691 Lnet/minecraft/class_5947;method_34691(Ljava/util/stream/Stream;)Ljava/util/stream/Stream;
      official a Lbje;a(Ljava/util/stream/Stream;)Ljava/util/stream/Stream;
    • findValueAt

      private static <T> com.mojang.serialization.OptionalDynamic<T> findValueAt(com.mojang.serialization.Dynamic<T> root, String[] pathParts)
      Mappings:
      Namespace Name Mixin selector
      named findValueAt Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;findValueAt(Lcom/mojang/serialization/Dynamic;[Ljava/lang/String;)Lcom/mojang/serialization/OptionalDynamic;
      intermediary method_34689 Lnet/minecraft/class_5947;method_34689(Lcom/mojang/serialization/Dynamic;[Ljava/lang/String;)Lcom/mojang/serialization/OptionalDynamic;
      official a Lbje;a(Lcom/mojang/serialization/Dynamic;[Ljava/lang/String;)Lcom/mojang/serialization/OptionalDynamic;
    • updatePoolElementFeature

      protected static com.mojang.serialization.Dynamic<?> updatePoolElementFeature(com.mojang.serialization.Dynamic<?> feature)
      Mappings:
      Namespace Name Mixin selector
      named updatePoolElementFeature Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;updatePoolElementFeature(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_34688 Lnet/minecraft/class_5947;method_34688(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      official a Lbje;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • updateFeature

      private static Optional<String> updateFeature(String type, String name, String stateProviderType, String stateProviderStateName, String stateProviderFirstEntryName, String foliagePlacerType, String leavesProviderStateName)
      Mappings:
      Namespace Name Mixin selector
      named updateFeature Lnet/minecraft/datafixer/fix/StructureFeatureChildrenPoolElementFix;updateFeature(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/Optional;
      intermediary method_34690 Lnet/minecraft/class_5947;method_34690(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/Optional;
      official a Lbje;a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/Optional;