Class EntityBlockStateFix

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

public class EntityBlockStateFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
official ase
intermediary net/minecraft/class_3595
named net/minecraft/datafixer/fix/EntityBlockStateFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Map<String,Integer>
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    private com.mojang.datafixers.Typed<?>
    fixFallingBlock(com.mojang.datafixers.Typed<?> fallingBlock)
     
    static int
     
    com.mojang.datafixers.TypeRewriteRule
     
    private com.mojang.datafixers.Typed<?>
    mergeIdAndData(com.mojang.datafixers.Typed<?> entity, String oldIdKey, String oldDataKey, String newStateKey)
     
    private com.mojang.datafixers.Typed<?>
    useFunction(com.mojang.datafixers.Typed<?> entity, String entityId, Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> function)
     

    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

    • BLOCK_NAME_TO_ID

      private static final Map<String,Integer> BLOCK_NAME_TO_ID
      Mappings:
      Namespace Name Mixin selector
      official a Lase;a:Ljava/util/Map;
      intermediary field_15891 Lnet/minecraft/class_3595;field_15891:Ljava/util/Map;
      named BLOCK_NAME_TO_ID Lnet/minecraft/datafixer/fix/EntityBlockStateFix;BLOCK_NAME_TO_ID:Ljava/util/Map;
  • Constructor Details

    • EntityBlockStateFix

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

    • getNumericalBlockId

      public static int getNumericalBlockId(String blockId)
      Mappings:
      Namespace Name Mixin selector
      official a Lase;a(Ljava/lang/String;)I
      intermediary method_15686 Lnet/minecraft/class_3595;method_15686(Ljava/lang/String;)I
      named getNumericalBlockId Lnet/minecraft/datafixer/fix/EntityBlockStateFix;getNumericalBlockId(Ljava/lang/String;)I
    • makeRule

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

      private com.mojang.datafixers.Typed<?> fixFallingBlock(com.mojang.datafixers.Typed<?> fallingBlock)
      Mappings:
      Namespace Name Mixin selector
      official a Lase;a(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      intermediary method_15695 Lnet/minecraft/class_3595;method_15695(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
      named fixFallingBlock Lnet/minecraft/datafixer/fix/EntityBlockStateFix;fixFallingBlock(Lcom/mojang/datafixers/Typed;)Lcom/mojang/datafixers/Typed;
    • mergeIdAndData

      private com.mojang.datafixers.Typed<?> mergeIdAndData(com.mojang.datafixers.Typed<?> entity, String oldIdKey, String oldDataKey, String newStateKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lase;a(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/datafixers/Typed;
      intermediary method_15687 Lnet/minecraft/class_3595;method_15687(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/datafixers/Typed;
      named mergeIdAndData Lnet/minecraft/datafixer/fix/EntityBlockStateFix;mergeIdAndData(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/datafixers/Typed;
    • useFunction

      private com.mojang.datafixers.Typed<?> useFunction(com.mojang.datafixers.Typed<?> entity, String entityId, Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> function)
      Mappings:
      Namespace Name Mixin selector
      official a Lase;a(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;
      intermediary method_15682 Lnet/minecraft/class_3595;method_15682(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;
      named useFunction Lnet/minecraft/datafixer/fix/EntityBlockStateFix;useFunction(Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;