public abstract class AbstractUuidFix
extends com.mojang.datafixers.DataFix
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
protected com.mojang.datafixers.DSL.TypeReference |
typeReference |
Constructor and Description |
---|
AbstractUuidFix(com.mojang.datafixers.schemas.Schema outputSchema,
com.mojang.datafixers.DSL.TypeReference typeReference) |
Modifier and Type | Method and Description |
---|---|
protected static Optional<com.mojang.serialization.Dynamic<?>> |
createArray(com.mojang.serialization.Dynamic<?> dynamic,
long mostBits,
long leastBits) |
protected static Optional<com.mojang.serialization.Dynamic<?>> |
createArrayFromCompoundUuid(com.mojang.serialization.Dynamic<?> dynamic) |
protected static Optional<com.mojang.serialization.Dynamic<?>> |
createArrayFromMostLeastTags(com.mojang.serialization.Dynamic<?> dynamic,
String mostBitsKey,
String leastBitsKey) |
protected static Optional<com.mojang.serialization.Dynamic<?>> |
createArrayFromStringUuid(com.mojang.serialization.Dynamic<?> dynamic,
String key) |
protected static Optional<com.mojang.serialization.Dynamic<?>> |
updateCompoundUuid(com.mojang.serialization.Dynamic<?> dynamic,
String oldKey,
String newKey) |
protected static Optional<com.mojang.serialization.Dynamic<?>> |
updateRegularMostLeast(com.mojang.serialization.Dynamic<?> dynamic,
String oldKey,
String newKey) |
protected static Optional<com.mojang.serialization.Dynamic<?>> |
updateStringUuid(com.mojang.serialization.Dynamic<?> dynamic,
String oldKey,
String newKey) |
protected com.mojang.datafixers.Typed<?> |
updateTyped(com.mojang.datafixers.Typed<?> typed,
String name,
Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> updater) |
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, makeRule, onFail, writeAndRead, writeFixAndRead
protected static final Logger LOGGER
protected com.mojang.datafixers.DSL.TypeReference typeReference
public AbstractUuidFix(com.mojang.datafixers.schemas.Schema outputSchema, com.mojang.datafixers.DSL.TypeReference typeReference)
protected com.mojang.datafixers.Typed<?> updateTyped(com.mojang.datafixers.Typed<?> typed, String name, Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> updater)
protected static Optional<com.mojang.serialization.Dynamic<?>> updateStringUuid(com.mojang.serialization.Dynamic<?> dynamic, String oldKey, String newKey)
protected static Optional<com.mojang.serialization.Dynamic<?>> updateCompoundUuid(com.mojang.serialization.Dynamic<?> dynamic, String oldKey, String newKey)
protected static Optional<com.mojang.serialization.Dynamic<?>> updateRegularMostLeast(com.mojang.serialization.Dynamic<?> dynamic, String oldKey, String newKey)
protected static Optional<com.mojang.serialization.Dynamic<?>> createArrayFromStringUuid(com.mojang.serialization.Dynamic<?> dynamic, String key)
protected static Optional<com.mojang.serialization.Dynamic<?>> createArrayFromCompoundUuid(com.mojang.serialization.Dynamic<?> dynamic)
protected static Optional<com.mojang.serialization.Dynamic<?>> createArrayFromMostLeastTags(com.mojang.serialization.Dynamic<?> dynamic, String mostBitsKey, String leastBitsKey)
protected static Optional<com.mojang.serialization.Dynamic<?>> createArray(com.mojang.serialization.Dynamic<?> dynamic, long mostBits, long leastBits)