Class VillagerProfessionFix

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

public class VillagerProfessionFix
extends ChoiceFix
  • 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)
  • Method Details

    • transform

      protected com.mojang.datafixers.Typed<?> transform​(com.mojang.datafixers.Typed<?> inputType)
      Specified by:
      transform in class ChoiceFix
    • convertProfessionId

      private static String convertProfessionId​(int professionId, int careerId)