Class RegistryWriteOps<T>

java.lang.Object
net.minecraft.resources.DelegatingOps<T>
net.minecraft.resources.RegistryWriteOps<T>
All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>

public class RegistryWriteOps<T> extends DelegatingOps<T>
  • Field Details

  • Constructor Details

    • RegistryWriteOps

      private RegistryWriteOps(com.mojang.serialization.DynamicOps<T> p_135765_, RegistryAccess p_135766_)
  • Method Details

    • create

      public static <T> RegistryWriteOps<T> create(com.mojang.serialization.DynamicOps<T> p_135768_, RegistryAccess p_135769_)
    • encode

      protected <E> com.mojang.serialization.DataResult<T> encode(E p_135771_, T p_135772_, ResourceKey<? extends Registry<E>> p_135773_, com.mojang.serialization.Codec<E> p_135774_)