Class ItemStackDataFlattening


  • public class ItemStackDataFlattening
    extends com.mojang.datafixers.DataFix
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Set<java.lang.String> DAMAGE_IDS  
      private static java.util.Set<java.lang.String> IDS  
      private static java.util.Map<java.lang.String,​java.lang.String> MAP  
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemStackDataFlattening​(com.mojang.datafixers.schemas.Schema p_i49635_1_, boolean p_i49635_2_)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.mojang.datafixers.TypeRewriteRule makeRule()  
      static java.lang.String updateItem​(java.lang.String p_199175_0_, int p_199175_1_)  
      • 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
    • Field Detail

      • MAP

        private static final java.util.Map<java.lang.String,​java.lang.String> MAP
      • IDS

        private static final java.util.Set<java.lang.String> IDS
      • DAMAGE_IDS

        private static final java.util.Set<java.lang.String> DAMAGE_IDS
    • Constructor Detail

      • ItemStackDataFlattening

        public ItemStackDataFlattening​(com.mojang.datafixers.schemas.Schema p_i49635_1_,
                                       boolean p_i49635_2_)
    • Method Detail

      • makeRule

        public com.mojang.datafixers.TypeRewriteRule makeRule()
        Specified by:
        makeRule in class com.mojang.datafixers.DataFix
      • updateItem

        @Nullable
        public static java.lang.String updateItem​(@Nullable
                                                  java.lang.String p_199175_0_,
                                                  int p_199175_1_)