Class EntityBlockStateFix

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

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

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

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

    Modifier and Type Method Description
    static int getNumericalBlockId​(String blockId)  
    com.mojang.datafixers.TypeRewriteRule makeRule()  
    private com.mojang.datafixers.Typed<?> mergeIdAndData​(com.mojang.datafixers.Typed<?> typed, String oldIdKey, String oldDataKey, String newStateKey)  
    private com.mojang.datafixers.Typed<?> method_15695​(com.mojang.datafixers.Typed<?> typed)  
    private com.mojang.datafixers.Typed<?> useFunction​(com.mojang.datafixers.Typed<?> typed, 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
  • Constructor Details

    • EntityBlockStateFix

      public EntityBlockStateFix​(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
  • Method Details

    • getNumericalBlockId

      public static int getNumericalBlockId​(String blockId)
    • makeRule

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

      private com.mojang.datafixers.Typed<?> method_15695​(com.mojang.datafixers.Typed<?> typed)
    • mergeIdAndData

      private com.mojang.datafixers.Typed<?> mergeIdAndData​(com.mojang.datafixers.Typed<?> typed, String oldIdKey, String oldDataKey, String newStateKey)
    • useFunction

      private com.mojang.datafixers.Typed<?> useFunction​(com.mojang.datafixers.Typed<?> typed, String entityId, Function<com.mojang.datafixers.Typed<?>,​com.mojang.datafixers.Typed<?>> function)