Class VillagerTradeFix

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

public class VillagerTradeFix
extends ChoiceFix
  • Constructor Summary

    Constructors
    Constructor Description
    VillagerTradeFix​(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)  
  • Method Summary

    Modifier and Type Method Description
    private com.mojang.datafixers.Typed<?> fixPumpkinTrade​(com.mojang.datafixers.OpticFinder<com.mojang.datafixers.util.Pair<String,​String>> opticFinder, com.mojang.datafixers.Typed<?> typed)  
    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

    • VillagerTradeFix

      public VillagerTradeFix​(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
  • Method Details

    • transform

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

      private com.mojang.datafixers.Typed<?> fixPumpkinTrade​(com.mojang.datafixers.OpticFinder<com.mojang.datafixers.util.Pair<String,​String>> opticFinder, com.mojang.datafixers.Typed<?> typed)