Class ConditionCodec

java.lang.Object
net.minecraftforge.common.crafting.conditions.ConditionCodec

public class ConditionCodec extends Object
  • Constructor Details

    • ConditionCodec

      public ConditionCodec()
  • Method Details

    • checkingDecode

      public static <T> com.mojang.serialization.Codec<T> checkingDecode(com.mojang.serialization.Codec<T> normal, Supplier<T> _default)
    • checkingDecode

      public static <T> com.mojang.serialization.Codec<T> checkingDecode(com.mojang.serialization.Codec<T> normal, Supplier<T> _default, String key)
    • wrap

      public static <T> com.mojang.serialization.Decoder<Optional<T>> wrap(com.mojang.serialization.Decoder<T> normal)
    • wrap

      public static <T> com.mojang.serialization.Decoder<Optional<T>> wrap(com.mojang.serialization.Decoder<T> normal, String key)
    • getContext

      public static <T> ICondition.IContext getContext(com.mojang.serialization.DynamicOps<T> ops)