Class LegacyResourcePackWrapperV4

    • Field Detail

      • CHESTS

        private static final java.util.Map<java.lang.String,​com.mojang.datafixers.util.Pair<ChestType,​ResourceLocation>> CHESTS
      • PATTERNS

        private static final java.util.List<java.lang.String> PATTERNS
      • SHIELDS

        private static final java.util.Set<java.lang.String> SHIELDS
      • BANNERS

        private static final java.util.Set<java.lang.String> BANNERS
      • OLD_IRON_GOLEM_LOCATION

        public static final ResourceLocation OLD_IRON_GOLEM_LOCATION
    • Constructor Detail

      • LegacyResourcePackWrapperV4

        public LegacyResourcePackWrapperV4​(IResourcePack p_i226053_1_)
    • Method Detail

      • getRootResource

        public java.io.InputStream getRootResource​(java.lang.String p_195763_1_)
                                            throws java.io.IOException
        Specified by:
        getRootResource in interface IResourcePack
        Throws:
        java.io.IOException
      • fixPattern

        @Nullable
        public static java.io.InputStream fixPattern​(java.io.InputStream p_229286_0_,
                                                     java.io.InputStream p_229286_1_,
                                                     int p_229286_2_,
                                                     int p_229286_3_,
                                                     int p_229286_4_,
                                                     int p_229286_5_,
                                                     int p_229286_6_)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • fixConduitEyeTexture

        public static java.io.InputStream fixConduitEyeTexture​(java.io.InputStream p_229285_0_)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • fixLeftChest

        public static java.io.InputStream fixLeftChest​(java.io.InputStream p_229289_0_)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • fixRightChest

        public static java.io.InputStream fixRightChest​(java.io.InputStream p_229290_0_)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • fixSingleChest

        public static java.io.InputStream fixSingleChest​(java.io.InputStream p_229292_0_)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getResources

        public java.util.Collection<ResourceLocation> getResources​(ResourcePackType p_225637_1_,
                                                                   java.lang.String p_225637_2_,
                                                                   java.lang.String p_225637_3_,
                                                                   int p_225637_4_,
                                                                   java.util.function.Predicate<java.lang.String> p_225637_5_)
        Specified by:
        getResources in interface IResourcePack
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface IResourcePack
      • copyRect

        private static void copyRect​(NativeImage p_229284_0_,
                                     NativeImage p_229284_1_,
                                     int p_229284_2_,
                                     int p_229284_3_,
                                     int p_229284_4_,
                                     int p_229284_5_,
                                     int p_229284_6_,
                                     int p_229284_7_,
                                     int p_229284_8_,
                                     boolean p_229284_9_,
                                     boolean p_229284_10_)