Package net.minecraft.datafixer.fix
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 bgp
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStructureFeatureChildrenPoolElementFix
(com.mojang.datafixers.schemas.Schema outputSchema) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> com.mojang.serialization.OptionalDynamic
<T> findValueAt
(com.mojang.serialization.Dynamic<T> root, String[] pathParts) com.mojang.datafixers.TypeRewriteRule
makeRule()
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) 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
-
Field Details
-
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
Lbgp;a:Ljava/util/regex/Pattern;
-
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
Lbgp;b:Ljava/util/Set;
-
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
Lbgp;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>
Lbgp;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
-
-
Method Details
-
makeRule
public com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRule
in classcom.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
Lbgp;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
Lbgp;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
Lbgp;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
Lbgp;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
Lbgp;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
Lbgp;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;
-