Class ItemInstanceTheFlatteningFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.ItemInstanceTheFlatteningFix

public class ItemInstanceTheFlatteningFix
extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
official aka
intermediary net/minecraft/class_1188
named net/minecraft/datafixer/fix/ItemInstanceTheFlatteningFix
  • Field Summary

    Fields
    Modifier and Type Field Description
    private static Set<String> DAMAGEABLE_ITEMS  
    private static Map<String,​String> FLATTENING_MAP  
    private static Set<String> ORIGINAL_ITEM_NAMES  
  • Constructor Summary

    Constructors
    Constructor Description
    ItemInstanceTheFlatteningFix​(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)  
  • Method Summary

    Modifier and Type Method Description
    static String getItem​(String originalName, int damage)  
    com.mojang.datafixers.TypeRewriteRule makeRule()  

    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 Details

    • FLATTENING_MAP

      private static final Map<String,​String> FLATTENING_MAP
      Mappings:
      Namespace Name Mixin selector
      official a Laka;a:Ljava/util/Map;
      intermediary field_5684 Lnet/minecraft/class_1188;field_5684:Ljava/util/Map;
      named FLATTENING_MAP Lnet/minecraft/datafixer/fix/ItemInstanceTheFlatteningFix;FLATTENING_MAP:Ljava/util/Map;
    • ORIGINAL_ITEM_NAMES

      private static final Set<String> ORIGINAL_ITEM_NAMES
      Mappings:
      Namespace Name Mixin selector
      official b Laka;b:Ljava/util/Set;
      intermediary field_5683 Lnet/minecraft/class_1188;field_5683:Ljava/util/Set;
      named ORIGINAL_ITEM_NAMES Lnet/minecraft/datafixer/fix/ItemInstanceTheFlatteningFix;ORIGINAL_ITEM_NAMES:Ljava/util/Set;
    • DAMAGEABLE_ITEMS

      private static final Set<String> DAMAGEABLE_ITEMS
      Mappings:
      Namespace Name Mixin selector
      official c Laka;c:Ljava/util/Set;
      intermediary field_5682 Lnet/minecraft/class_1188;field_5682:Ljava/util/Set;
      named DAMAGEABLE_ITEMS Lnet/minecraft/datafixer/fix/ItemInstanceTheFlatteningFix;DAMAGEABLE_ITEMS:Ljava/util/Set;
  • Constructor Details

    • ItemInstanceTheFlatteningFix

      public ItemInstanceTheFlatteningFix​(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laka;<init>(Lcom/mojang/datafixers/schemas/Schema;Z)V
      intermediary <init> Lnet/minecraft/class_1188;<init>(Lcom/mojang/datafixers/schemas/Schema;Z)V
      named <init> Lnet/minecraft/datafixer/fix/ItemInstanceTheFlatteningFix;<init>(Lcom/mojang/datafixers/schemas/Schema;Z)V
  • Method Details

    • makeRule

      public com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
      Mappings:
      Namespace Name Mixin selector
      official makeRule Laka;makeRule()Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary makeRule Lnet/minecraft/class_1188;makeRule()Lcom/mojang/datafixers/TypeRewriteRule;
      named makeRule Lnet/minecraft/datafixer/fix/ItemInstanceTheFlatteningFix;makeRule()Lcom/mojang/datafixers/TypeRewriteRule;
    • getItem

      @Nullable public static String getItem​(@Nullable String originalName, int damage)
      Mappings:
      Namespace Name Mixin selector
      official a Laka;a(Ljava/lang/String;I)Ljava/lang/String;
      intermediary method_5042 Lnet/minecraft/class_1188;method_5042(Ljava/lang/String;I)Ljava/lang/String;
      named getItem Lnet/minecraft/datafixer/fix/ItemInstanceTheFlatteningFix;getItem(Ljava/lang/String;I)Ljava/lang/String;