Class FixUtil

java.lang.Object
net.minecraft.datafixer.FixUtil

public class FixUtil extends Object
Mappings:
Namespace Name
named net/minecraft/datafixer/FixUtil
intermediary net/minecraft/class_9228
official bbu
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.mojang.serialization.Dynamic<?>
    apply(com.mojang.serialization.Dynamic<?> dynamic, String fieldName, UnaryOperator<String> applier)
     
    static <T> Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>>
    compose(Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>>[] fixes)
     
    static com.mojang.serialization.Dynamic<?>
     
    static com.mojang.serialization.Dynamic<?>
     
    static com.mojang.serialization.Dynamic<?>
    fixBlockPos(com.mojang.serialization.Dynamic<?> dynamic)
     
    private static <A, B> com.mojang.datafixers.TypeRewriteRule
    typeChangingRule(com.mojang.datafixers.types.Type<A> oldType, com.mojang.datafixers.types.Type<B> newType)
     
    static <T, R> com.mojang.datafixers.Typed<R>
    withType(com.mojang.datafixers.types.Type<R> type, com.mojang.datafixers.Typed<T> typed)
     
    static com.mojang.datafixers.types.Type<?>
    withTypeChanged(com.mojang.datafixers.types.Type<?> type, com.mojang.datafixers.types.Type<?> oldType, com.mojang.datafixers.types.Type<?> newType)
     

    Methods inherited from class java.lang.Object

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

    • FixUtil

      public FixUtil()
  • Method Details

    • fixBlockPos

      public static com.mojang.serialization.Dynamic<?> fixBlockPos(com.mojang.serialization.Dynamic<?> dynamic)
      Mappings:
      Namespace Name Mixin selector
      named fixBlockPos Lnet/minecraft/datafixer/FixUtil;fixBlockPos(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_56943 Lnet/minecraft/class_9228;method_56943(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      official a Lbbu;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • withType

      public static <T, R> com.mojang.datafixers.Typed<R> withType(com.mojang.datafixers.types.Type<R> type, com.mojang.datafixers.Typed<T> typed)
      Mappings:
      Namespace Name Mixin selector
      named withType Lnet/minecraft/datafixer/FixUtil;withType(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      intermediary method_57182 Lnet/minecraft/class_9228;method_57182(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      official a Lbbu;a(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
    • withTypeChanged

      public static com.mojang.datafixers.types.Type<?> withTypeChanged(com.mojang.datafixers.types.Type<?> type, com.mojang.datafixers.types.Type<?> oldType, com.mojang.datafixers.types.Type<?> newType)
      Mappings:
      Namespace Name Mixin selector
      named withTypeChanged Lnet/minecraft/datafixer/FixUtil;withTypeChanged(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/types/Type;
      intermediary method_61350 Lnet/minecraft/class_9228;method_61350(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/types/Type;
      official a Lbbu;a(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/types/Type;
    • typeChangingRule

      private static <A, B> com.mojang.datafixers.TypeRewriteRule typeChangingRule(com.mojang.datafixers.types.Type<A> oldType, com.mojang.datafixers.types.Type<B> newType)
      Mappings:
      Namespace Name Mixin selector
      named typeChangingRule Lnet/minecraft/datafixer/FixUtil;typeChangingRule(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary method_61349 Lnet/minecraft/class_9228;method_61349(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/TypeRewriteRule;
      official a Lbbu;a(Lcom/mojang/datafixers/types/Type;Lcom/mojang/datafixers/types/Type;)Lcom/mojang/datafixers/TypeRewriteRule;
    • compose

      @SafeVarargs public static <T> Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> compose(Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>>[] fixes)
      Mappings:
      Namespace Name Mixin selector
      named compose Lnet/minecraft/datafixer/FixUtil;compose([Ljava/util/function/Function;)Ljava/util/function/Function;
      intermediary method_59907 Lnet/minecraft/class_9228;method_59907([Ljava/util/function/Function;)Ljava/util/function/Function;
      official a Lbbu;a([Ljava/util/function/Function;)Ljava/util/function/Function;
    • createBlockState

      public static com.mojang.serialization.Dynamic<?> createBlockState(String id, Map<String,String> properties)
      Mappings:
      Namespace Name Mixin selector
      named createBlockState Lnet/minecraft/datafixer/FixUtil;createBlockState(Ljava/lang/String;Ljava/util/Map;)Lcom/mojang/serialization/Dynamic;
      intermediary method_61356 Lnet/minecraft/class_9228;method_61356(Ljava/lang/String;Ljava/util/Map;)Lcom/mojang/serialization/Dynamic;
      official a Lbbu;a(Ljava/lang/String;Ljava/util/Map;)Lcom/mojang/serialization/Dynamic;
    • createBlockState

      public static com.mojang.serialization.Dynamic<?> createBlockState(String id)
      Mappings:
      Namespace Name Mixin selector
      named createBlockState Lnet/minecraft/datafixer/FixUtil;createBlockState(Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      intermediary method_61355 Lnet/minecraft/class_9228;method_61355(Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      official a Lbbu;a(Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
    • apply

      public static com.mojang.serialization.Dynamic<?> apply(com.mojang.serialization.Dynamic<?> dynamic, String fieldName, UnaryOperator<String> applier)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/datafixer/FixUtil;apply(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/util/function/UnaryOperator;)Lcom/mojang/serialization/Dynamic;
      intermediary method_61351 Lnet/minecraft/class_9228;method_61351(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/util/function/UnaryOperator;)Lcom/mojang/serialization/Dynamic;
      official a Lbbu;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/util/function/UnaryOperator;)Lcom/mojang/serialization/Dynamic;