Class NBTUtil


  • public final class NBTUtil
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
    • Constructor Detail

      • NBTUtil

        public NBTUtil()
    • Method Detail

      • readGameProfile

        @Nullable
        public static com.mojang.authlib.GameProfile readGameProfile​(CompoundNBT p_152459_0_)
      • writeGameProfile

        public static CompoundNBT writeGameProfile​(CompoundNBT p_180708_0_,
                                                   com.mojang.authlib.GameProfile p_180708_1_)
      • compareNbt

        public static boolean compareNbt​(@Nullable
                                         INBT p_181123_0_,
                                         @Nullable
                                         INBT p_181123_1_,
                                         boolean p_181123_2_)
      • createUUID

        public static IntArrayNBT createUUID​(java.util.UUID p_240626_0_)
      • loadUUID

        public static java.util.UUID loadUUID​(INBT p_186860_0_)
      • setValueHelper

        private static <S extends StateHolder<?,​S>,​T extends java.lang.Comparable<T>> S setValueHelper​(S p_193590_0_,
                                                                                                                   Property<T> p_193590_1_,
                                                                                                                   java.lang.String p_193590_2_,
                                                                                                                   CompoundNBT p_193590_3_,
                                                                                                                   CompoundNBT p_193590_4_)
      • getName

        private static <T extends java.lang.Comparable<T>> java.lang.String getName​(Property<T> p_190010_0_,
                                                                                    java.lang.Comparable<?> p_190010_1_)