Class AbstractUUIDFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.AbstractUUIDFix
Direct Known Subclasses:
BlockEntityUUIDFix, EntityUUIDFix, ItemStackUUIDFix, LevelUUIDFix, PlayerUUIDFix, SavedDataUUIDFix

public abstract class AbstractUUIDFix extends com.mojang.datafixers.DataFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static org.apache.logging.log4j.Logger
     
    protected com.mojang.datafixers.DSL.TypeReference
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractUUIDFix​(com.mojang.datafixers.schemas.Schema p_14572_, com.mojang.datafixers.DSL.TypeReference p_14573_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static Optional<com.mojang.serialization.Dynamic<?>>
    createUUIDFromLongs​(com.mojang.serialization.Dynamic<?> p_14622_, String p_14623_, String p_14624_)
     
    protected static Optional<com.mojang.serialization.Dynamic<?>>
    createUUIDFromML​(com.mojang.serialization.Dynamic<?> p_14579_)
     
    protected static Optional<com.mojang.serialization.Dynamic<?>>
    createUUIDFromString​(com.mojang.serialization.Dynamic<?> p_14588_, String p_14589_)
     
    protected static Optional<com.mojang.serialization.Dynamic<?>>
    createUUIDTag​(com.mojang.serialization.Dynamic<?> p_14581_, long p_14582_, long p_14583_)
     
    protected static Optional<com.mojang.serialization.Dynamic<?>>
    replaceUUIDLeastMost​(com.mojang.serialization.Dynamic<?> p_14618_, String p_14619_, String p_14620_)
     
    protected static Optional<com.mojang.serialization.Dynamic<?>>
    replaceUUIDMLTag​(com.mojang.serialization.Dynamic<?> p_14609_, String p_14610_, String p_14611_)
     
    protected static Optional<com.mojang.serialization.Dynamic<?>>
    replaceUUIDString​(com.mojang.serialization.Dynamic<?> p_14591_, String p_14592_, String p_14593_)
     
    protected com.mojang.datafixers.Typed<?>
    updateNamedChoice​(com.mojang.datafixers.Typed<?> p_14575_, String p_14576_, Function<com.mojang.serialization.Dynamic<?>,​com.mojang.serialization.Dynamic<?>> p_14577_)
     

    Methods inherited from class com.mojang.datafixers.DataFix

    checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, makeRule, onFail, writeAndRead, writeFixAndRead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOGGER

      protected static final org.apache.logging.log4j.Logger LOGGER
    • typeReference

      protected com.mojang.datafixers.DSL.TypeReference typeReference
  • Constructor Details

    • AbstractUUIDFix

      public AbstractUUIDFix(com.mojang.datafixers.schemas.Schema p_14572_, com.mojang.datafixers.DSL.TypeReference p_14573_)
  • Method Details

    • updateNamedChoice

      protected com.mojang.datafixers.Typed<?> updateNamedChoice(com.mojang.datafixers.Typed<?> p_14575_, String p_14576_, Function<com.mojang.serialization.Dynamic<?>,​com.mojang.serialization.Dynamic<?>> p_14577_)
    • replaceUUIDString

      protected static Optional<com.mojang.serialization.Dynamic<?>> replaceUUIDString(com.mojang.serialization.Dynamic<?> p_14591_, String p_14592_, String p_14593_)
    • replaceUUIDMLTag

      protected static Optional<com.mojang.serialization.Dynamic<?>> replaceUUIDMLTag(com.mojang.serialization.Dynamic<?> p_14609_, String p_14610_, String p_14611_)
    • replaceUUIDLeastMost

      protected static Optional<com.mojang.serialization.Dynamic<?>> replaceUUIDLeastMost(com.mojang.serialization.Dynamic<?> p_14618_, String p_14619_, String p_14620_)
    • createUUIDFromString

      protected static Optional<com.mojang.serialization.Dynamic<?>> createUUIDFromString(com.mojang.serialization.Dynamic<?> p_14588_, String p_14589_)
    • createUUIDFromML

      protected static Optional<com.mojang.serialization.Dynamic<?>> createUUIDFromML(com.mojang.serialization.Dynamic<?> p_14579_)
    • createUUIDFromLongs

      protected static Optional<com.mojang.serialization.Dynamic<?>> createUUIDFromLongs(com.mojang.serialization.Dynamic<?> p_14622_, String p_14623_, String p_14624_)
    • createUUIDTag

      protected static Optional<com.mojang.serialization.Dynamic<?>> createUUIDTag(com.mojang.serialization.Dynamic<?> p_14581_, long p_14582_, long p_14583_)