Class VillagerProfessionFix

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

public class VillagerProfessionFix extends ChoiceFix
Mappings:
Namespace Name
official awt
intermediary net/minecraft/class_3845
named net/minecraft/datafixer/fix/VillagerProfessionFix
  • Constructor Summary

    Constructors
    Constructor
    Description
    VillagerProfessionFix(com.mojang.datafixers.schemas.Schema outputSchema, String entity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static String
    convertProfessionId(int professionId, int careerId)
     
    protected com.mojang.datafixers.Typed<?>
    transform(com.mojang.datafixers.Typed<?> inputType)

    Methods inherited from class net.minecraft.datafixer.fix.ChoiceFix

    makeRule

    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
  • Constructor Details

    • VillagerProfessionFix

      public VillagerProfessionFix(com.mojang.datafixers.schemas.Schema outputSchema, String entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lawt;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_3845;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;)V
      named <init> Lnet/minecraft/datafixer/fix/VillagerProfessionFix;<init>(Lcom/mojang/datafixers/schemas/Schema;Ljava/lang/String;)V
  • Method Details

    • transform

      protected com.mojang.datafixers.Typed<?> transform(com.mojang.datafixers.Typed<?> inputType)
      Specified by:
      transform in class ChoiceFix
      Mappings:
      Namespace Name Mixin selector
      official a Lavb;a(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      intermediary method_5105 Lnet/minecraft/class_1197;method_5105(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      named transform Lnet/minecraft/datafixer/fix/ChoiceFix;transform(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
    • convertProfessionId

      private static String convertProfessionId(int professionId, int careerId)
      Mappings:
      Namespace Name Mixin selector
      official a Lawt;a(II)Ljava/lang/String;
      intermediary method_16897 Lnet/minecraft/class_3845;method_16897(II)Ljava/lang/String;
      named convertProfessionId Lnet/minecraft/datafixer/fix/VillagerProfessionFix;convertProfessionId(II)Ljava/lang/String;