Package net.minecraft.util.datafix.fixes
Part 1/1
AbstractArrowPickupFix
- Full name:
net.minecraft.util.datafix.fixes.AbstractArrowPickupFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AbstractArrowPickupFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.AbstractArrowPickupFix#AbstractArrowPickupFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractArrowPickupFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractArrowPickupFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.AbstractArrowPickupFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractArrowPickupFix.java:17 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), fixTypeEverywhereTyped(), getType(). คืนค่า: this.fixTypeEverywhereTyped("AbstractArrowPickupFix", schema.getType(References.ENTITY), this::updateProjectiles).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AbstractPoiSectionFix
- Full name:
net.minecraft.util.datafix.fixes.AbstractPoiSectionFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AbstractPoiSectionFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.AbstractPoiSectionFix#AbstractPoiSectionFix(Schema,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractPoiSectionFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractPoiSectionFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name.
Parameters
Schema schemaString string
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.AbstractPoiSectionFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractPoiSectionFix.java:22 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: named(), typeName(), remainderType(), equals(), getInputSchema(), getType(), fixTypeEverywhere(), mapSecond(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.fixTypeEverywhere(this.name, type, dynamicOps -> pair -> pair.mapSecond(this::cap)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.AbstractPoiSectionFix#processRecords(Stream<Dynamic<T>>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractPoiSectionFix.java:44 - Modifiers:
protected abstract - Return:
Stream<Dynamic<T>>
คืออะไร
ดำเนินการ processRecords ตาม implementation ของ AbstractPoiSectionFix
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Stream<Dynamic<T>> stream
ตัวอย่างใช้งาน
Stream<Dynamic<T>> stream = ...;
@Override
protected Stream<Dynamic<T>> processRecords(Stream<Dynamic<T>> stream) {
return super.processRecords(stream);
}
AbstractUUIDFix
- Full name:
net.minecraft.util.datafix.fixes.AbstractUUIDFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AbstractUUIDFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.AbstractUUIDFix#AbstractUUIDFix(Schema,TypeReference)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractUUIDFix.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AbstractUUIDFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: typeReference.
Parameters
Schema schemaTypeReference typeReference
ตัวอย่างใช้งาน
Schema schema = ...;
TypeReference typeReference = ...;
AbstractUUIDFix instance = new AbstractUUIDFix(schema, typeReference);
net.minecraft.util.datafix.fixes.AbstractUUIDFix#createUUIDFromLongs(Dynamic<?>,String,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractUUIDFix.java:62 - Modifiers:
protected static - Return:
Optional<Dynamic<?>>
คืออะไร
สร้าง UUIDFrom Longs
ทำงานยังไง
เรียกต่อ: get(), asLong(), createUUIDTag(), empty(). คืนค่า: l != 0L && m != 0L ? createUUIDTag(dynamic, l, m) : Optional.empty().
Parameters
Dynamic<?> dynamicString stringString string2
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Optional<Dynamic<?>> createUUIDFromLongs(Dynamic<?> dynamic, String string, String string2) {
return super.createUUIDFromLongs(dynamic, string, string2);
}
net.minecraft.util.datafix.fixes.AbstractUUIDFix#createUUIDFromML(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractUUIDFix.java:58 - Modifiers:
protected static - Return:
Optional<Dynamic<?>>
คืออะไร
สร้าง UUIDFrom ML
ทำงานยังไง
เรียกต่อ: createUUIDFromLongs(). คืนค่า: createUUIDFromLongs(dynamic, "M", "L").
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Optional<Dynamic<?>> createUUIDFromML(Dynamic<?> dynamic) {
return super.createUUIDFromML(dynamic);
}
net.minecraft.util.datafix.fixes.AbstractUUIDFix#createUUIDFromString(Dynamic<?>,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractUUIDFix.java:43 - Modifiers:
protected static - Return:
Optional<Dynamic<?>>
คืออะไร
สร้าง UUIDFrom String
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: get(), result(), flatMap(), asString(), fromString(), createUUIDTag(), getMostSignificantBits(), getLeastSignificantBits(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Dynamic<?> dynamicString string
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Optional<Dynamic<?>> createUUIDFromString(Dynamic<?> dynamic, String string) {
return super.createUUIDFromString(dynamic, string);
}
net.minecraft.util.datafix.fixes.AbstractUUIDFix#createUUIDTag(Dynamic<?>,long,long)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractUUIDFix.java:68 - Modifiers:
protected static - Return:
Optional<Dynamic<?>>
คืออะไร
สร้าง UUIDTag
ทำงานยังไง
เรียกต่อ: of(), createIntList(), stream(). คืนค่า: Optional.of(dynamic.createIntList(Arrays.stream(new int[]{(int)(l >> 32), (int)l, (int)(m >> 32), (int)m}))).
Parameters
Dynamic<?> dynamiclong llong m
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Optional<Dynamic<?>> createUUIDTag(Dynamic<?> dynamic, long l, long m) {
return super.createUUIDTag(dynamic, l, m);
}
net.minecraft.util.datafix.fixes.AbstractUUIDFix#replaceUUIDLeastMost(Dynamic<?>,String,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractUUIDFix.java:37 - Modifiers:
protected static - Return:
Optional<Dynamic<?>>
คืออะไร
ดำเนินการ replaceUUIDLeastMost ตาม implementation ของ AbstractUUIDFix
ทำงานยังไง
เรียกต่อ: createUUIDFromLongs(), map(), remove(), set(). คืนค่า: createUUIDFromLongs(dynamic, string3, string4).map(dynamic2 -> dynamic.remove(string3).remove(string4).set(string2, (Dynamic<?>)dynamic2)).
Parameters
Dynamic<?> dynamicString stringString string2
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Optional<Dynamic<?>> replaceUUIDLeastMost(Dynamic<?> dynamic, String string, String string2) {
return super.replaceUUIDLeastMost(dynamic, string, string2);
}
net.minecraft.util.datafix.fixes.AbstractUUIDFix#replaceUUIDMLTag(Dynamic<?>,String,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractUUIDFix.java:33 - Modifiers:
protected static - Return:
Optional<Dynamic<?>>
คืออะไร
ดำเนินการ replaceUUIDMLTag ตาม implementation ของ AbstractUUIDFix
ทำงานยังไง
เรียกต่อ: get(), result(), flatMap(), map(), remove(), set(). คืนค่า: dynamic.get(string).result().flatMap(AbstractUUIDFix::createUUIDFromML).map(dynamic2 -> dynamic.remove(string).set(string2, (Dynamic<?>)dynamic2)).
Parameters
Dynamic<?> dynamicString stringString string2
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Optional<Dynamic<?>> replaceUUIDMLTag(Dynamic<?> dynamic, String string, String string2) {
return super.replaceUUIDMLTag(dynamic, string, string2);
}
net.minecraft.util.datafix.fixes.AbstractUUIDFix#replaceUUIDString(Dynamic<?>,String,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractUUIDFix.java:29 - Modifiers:
protected static - Return:
Optional<Dynamic<?>>
คืออะไร
ดำเนินการ replaceUUIDString ตาม implementation ของ AbstractUUIDFix
ทำงานยังไง
เรียกต่อ: createUUIDFromString(), map(), remove(), set(). คืนค่า: createUUIDFromString(dynamic, string).map(dynamic2 -> dynamic.remove(string).set(string2, (Dynamic<?>)dynamic2)).
Parameters
Dynamic<?> dynamicString stringString string2
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Optional<Dynamic<?>> replaceUUIDString(Dynamic<?> dynamic, String string, String string2) {
return super.replaceUUIDString(dynamic, string, string2);
}
net.minecraft.util.datafix.fixes.AbstractUUIDFix#updateNamedChoice(Typed<?>,String,Function<Dynamic<?>, Dynamic<?>>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AbstractUUIDFix.java:23 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
อัปเดต Named Choice
ทำงานยังไง
เรียกต่อ: getInputSchema(), getChoiceType(), getOutputSchema(), updateTyped(), namedChoice(), update(), remainderFinder(). คืนค่า: typed.updateTyped(DSL.namedChoice(string, type), type2, typedx -> typedx.update(DSL.remainderFinder(), function)).
Parameters
Typed<?> typedString stringFunction<Dynamic<?>, Dynamic<?>> function
ตัวอย่างใช้งาน
Typed<?> typed = ...;
Function<Dynamic<?>, Dynamic<?>> function = ...;
@Override
protected Typed<?> updateNamedChoice(Typed<?> typed, String string, Function<Dynamic<?>, Dynamic<?>> function) {
return super.updateNamedChoice(typed, string, function);
}
AddFlagIfNotPresentFix
- Full name:
net.minecraft.util.datafix.fixes.AddFlagIfNotPresentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AddFlagIfNotPresentFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.AddFlagIfNotPresentFix#AddFlagIfNotPresentFix(Schema,TypeReference,String,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AddFlagIfNotPresentFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AddFlagIfNotPresentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป. แก้ state: flagValue, flagKey, name, typeReference. เรียกต่อ: getVersionKey().
Parameters
Schema schemaTypeReference typeReferenceString stringboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
TypeReference typeReference = ...;
AddFlagIfNotPresentFix instance = new AddFlagIfNotPresentFix(schema, typeReference, "value", true);
net.minecraft.util.datafix.fixes.AddFlagIfNotPresentFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AddFlagIfNotPresentFix.java:25 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder(), set(), orElseGet(), get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AddNewChoices
- Full name:
net.minecraft.util.datafix.fixes.AddNewChoices - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AddNewChoices.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.AddNewChoices#AddNewChoices(Schema,String,TypeReference)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AddNewChoices.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AddNewChoices ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, type.
Parameters
Schema schemaString stringTypeReference typeReference
ตัวอย่างใช้งาน
Schema schema = ...;
TypeReference typeReference = ...;
AddNewChoices instance = new AddNewChoices(schema, "value", typeReference);
net.minecraft.util.datafix.fixes.AddNewChoices#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AddNewChoices.java:20 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), findChoiceType(), getOutputSchema(), cap(). คืนค่า: this.cap(taggedChoiceType, taggedChoiceType2).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AdvancementsFix
- Full name:
net.minecraft.util.datafix.fixes.AdvancementsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AdvancementsFix.java - Type:
class - Modifiers:
public - Extends:
AdvancementsRenameFix
net.minecraft.util.datafix.fixes.AdvancementsFix#AdvancementsFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AdvancementsFix.java:66 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AdvancementsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: getOrDefault().
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
AdvancementsRenameFix
- Full name:
net.minecraft.util.datafix.fixes.AdvancementsRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AdvancementsRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.AdvancementsRenameFix#AdvancementsRenameFix(Schema,boolean,String,Function<String, String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AdvancementsRenameFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AdvancementsRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, renamer.
Parameters
Schema schemaboolean blString stringFunction<String, String> function
ตัวอย่างใช้งาน
Schema schema = ...;
Function<String, String> function = ...;
AdvancementsRenameFix instance = new AdvancementsRenameFix(schema, true, "value", function);
net.minecraft.util.datafix.fixes.AdvancementsRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AdvancementsRenameFix.java:19 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), updateMapValues(), getFirst(), asString(). คืนค่า: pair.mapFirst(dynamic2 -> dynamic.createString(this.renamer.apply(string))).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AreaEffectCloudPotionFix
- Full name:
net.minecraft.util.datafix.fixes.AreaEffectCloudPotionFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AreaEffectCloudPotionFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.AreaEffectCloudPotionFix#AreaEffectCloudPotionFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AreaEffectCloudPotionFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AreaEffectCloudPotionFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.AreaEffectCloudPotionFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AreaEffectCloudPotionFix.java:14 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ AreaEffectCloudPotionFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fix).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
AttributeIdPrefixFix
- Full name:
net.minecraft.util.datafix.fixes.AttributeIdPrefixFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AttributeIdPrefixFix.java - Type:
class - Modifiers:
public - Extends:
AttributesRenameFix
net.minecraft.util.datafix.fixes.AttributeIdPrefixFix#AttributeIdPrefixFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AttributeIdPrefixFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AttributeIdPrefixFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
AttributeModifierIdFix
- Full name:
net.minecraft.util.datafix.fixes.AttributeModifierIdFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AttributeModifierIdFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.AttributeModifierIdFix#AttributeModifierIdFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AttributeModifierIdFix.java:76 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AttributeModifierIdFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.AttributeModifierIdFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AttributeModifierIdFix.java:80 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), seq(), fixTypeEverywhereTyped(), AttributeIdFix(), updateTyped(), update().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.AttributeModifierIdFix#uuidFromIntArray(int[])
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AttributeModifierIdFix.java:184 - Modifiers:
public static - Return:
UUID
คืออะไร
ดำเนินการ uuidFromIntArray ตาม implementation ของ AttributeModifierIdFix
ทำงานยังไง
สร้างออบเจ็กต์: UUID. คืนค่า: is.length != 4 ? null : new UUID((long)is[0] << 32 | is[1] & 4294967295L, (long)is[2] << 32 | is[3] & 4294967295L).
Parameters
int[] is
ตัวอย่างใช้งาน
AttributesRenameFix
- Full name:
net.minecraft.util.datafix.fixes.AttributesRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AttributesRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.AttributesRenameFix#AttributesRenameFix(Schema,String,UnaryOperator<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AttributesRenameFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AttributesRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, renames.
Parameters
Schema schemaString stringUnaryOperator<String> unaryOperator
ตัวอย่างใช้งาน
Schema schema = ...;
UnaryOperator<String> unaryOperator = ...;
AttributesRenameFix instance = new AttributesRenameFix(schema, "value", unaryOperator);
net.minecraft.util.datafix.fixes.AttributesRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AttributesRenameFix.java:23 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: seq(), fixTypeEverywhereTyped(), getInputSchema(), getType().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
AttributesRenameLegacy
- Full name:
net.minecraft.util.datafix.fixes.AttributesRenameLegacy - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/AttributesRenameLegacy.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.AttributesRenameLegacy#AttributesRenameLegacy(Schema,String,UnaryOperator<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AttributesRenameLegacy.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AttributesRenameLegacy ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, renames.
Parameters
Schema schemaString stringUnaryOperator<String> unaryOperator
ตัวอย่างใช้งาน
Schema schema = ...;
UnaryOperator<String> unaryOperator = ...;
AttributesRenameLegacy instance = new AttributesRenameLegacy(schema, "value", unaryOperator);
net.minecraft.util.datafix.fixes.AttributesRenameLegacy#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/AttributesRenameLegacy.java:24 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), seq(), fixTypeEverywhereTyped(), updateTyped().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BannerEntityCustomNameToOverrideComponentFix
- Full name:
net.minecraft.util.datafix.fixes.BannerEntityCustomNameToOverrideComponentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BannerEntityCustomNameToOverrideComponentFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BannerEntityCustomNameToOverrideComponentFix#BannerEntityCustomNameToOverrideComponentFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BannerEntityCustomNameToOverrideComponentFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BannerEntityCustomNameToOverrideComponentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
BannerEntityCustomNameToOverrideComponentFix instance = new BannerEntityCustomNameToOverrideComponentFix(schema);
net.minecraft.util.datafix.fixes.BannerEntityCustomNameToOverrideComponentFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BannerEntityCustomNameToOverrideComponentFix.java:21 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findChoiceType(), findField(), fixTypeEverywhereTyped(), get(), finder(), getFirst(). คืนค่า: object.equals("minecraft:banner") ? this.fix(typed, opticFinder) : typed.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BannerEntityCustomNameToOverrideComponentFix instance = ...;
TypeRewriteRule result = instance.makeRule();
BannerPatternFormatFix
- Full name:
net.minecraft.util.datafix.fixes.BannerPatternFormatFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BannerPatternFormatFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.BannerPatternFormatFix#BannerPatternFormatFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BannerPatternFormatFix.java:55 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BannerPatternFormatFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BannerPatternFormatFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BannerPatternFormatFix.java:59 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ BannerPatternFormatFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), BannerPatternFormatFix::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BannerPatternFormatFix#fixColor(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BannerPatternFormatFix.java:80 - Modifiers:
public static - Return:
String
คืออะไร
ดำเนินการ fixColor ตาม implementation ของ BannerPatternFormatFix
ทำงานยังไง
แยกกรณีด้วย switch. คืนค่า: switch (i) { case 1 -> "orange".
Parameters
int i
ตัวอย่างใช้งาน
BedItemColorFix
- Full name:
net.minecraft.util.datafix.fixes.BedItemColorFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BedItemColorFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BedItemColorFix#BedItemColorFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BedItemColorFix.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BedItemColorFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BedItemColorFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BedItemColorFix.java:19 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fieldFinder(), named(), typeName(), namespacedString(), fixTypeEverywhereTyped(), getInputSchema(), getType(), getOptional(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BeehiveFieldRenameFix
- Full name:
net.minecraft.util.datafix.fixes.BeehiveFieldRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BeehiveFieldRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BeehiveFieldRenameFix#BeehiveFieldRenameFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BeehiveFieldRenameFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BeehiveFieldRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BeehiveFieldRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BeehiveFieldRenameFix.java:28 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getChoiceType(), namedChoice(), findFieldType(), getElement(), fieldFinder(), typeFinder(), getType().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BitStorageAlignFix
- Full name:
net.minecraft.util.datafix.fixes.BitStorageAlignFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BitStorageAlignFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BitStorageAlignFix#addPadding(int,int,long[])
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BitStorageAlignFix.java:80 - Modifiers:
public static - Return:
long[]
คืออะไร
เพิ่ม Padding
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint jlong[] ls
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BitStorageAlignFix#BitStorageAlignFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BitStorageAlignFix.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BitStorageAlignFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BitStorageAlignFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BitStorageAlignFix.java:30 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findFieldType(), fieldFinder(), type(), findField(), getElement(), typeFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlendingDataFix
- Full name:
net.minecraft.util.datafix.fixes.BlendingDataFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlendingDataFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BlendingDataFix#BlendingDataFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlendingDataFix.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlendingDataFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name. เรียกต่อ: getVersionKey().
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlendingDataFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlendingDataFix.java:27 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getOutputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder(), updateChunkTag(), get(). คืนค่า: this.fixTypeEverywhereTyped( this.name, type, typed -> typed.update(DSL.remainderFinder(), dynamic -> updateChunkTag(dynamic, dynamic.get("__context"))) ).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlendingDataRemoveFromNetherEndFix
- Full name:
net.minecraft.util.datafix.fixes.BlendingDataRemoveFromNetherEndFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlendingDataRemoveFromNetherEndFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BlendingDataRemoveFromNetherEndFix#BlendingDataRemoveFromNetherEndFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlendingDataRemoveFromNetherEndFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlendingDataRemoveFromNetherEndFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
BlendingDataRemoveFromNetherEndFix instance = new BlendingDataRemoveFromNetherEndFix(schema);
net.minecraft.util.datafix.fixes.BlendingDataRemoveFromNetherEndFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlendingDataRemoveFromNetherEndFix.java:16 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getOutputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder(), updateChunkTag(), get().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockEntityBannerColorFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityBannerColorFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityBannerColorFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.BlockEntityBannerColorFix#BlockEntityBannerColorFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityBannerColorFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntityBannerColorFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
BlockEntityBannerColorFix instance = new BlockEntityBannerColorFix(schema, true);
net.minecraft.util.datafix.fixes.BlockEntityBannerColorFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityBannerColorFix.java:28 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ BlockEntityBannerColorFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockEntityBannerColorFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityBannerColorFix.java:14 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ BlockEntityBannerColorFix
ทำงานยังไง
เรียกต่อ: update(), createInt(), asInt(), orElse(), asStreamOpt(), map(), result().
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
BlockEntityBannerColorFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
BlockEntityBlockStateFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityBlockStateFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityBlockStateFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.BlockEntityBlockStateFix#BlockEntityBlockStateFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityBlockStateFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntityBlockStateFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
BlockEntityBlockStateFix instance = new BlockEntityBlockStateFix(schema, true);
net.minecraft.util.datafix.fixes.BlockEntityBlockStateFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityBlockStateFix.java:15 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ BlockEntityBlockStateFix
ทำงานยังไง
เรียกต่อ: getOutputSchema(), getChoiceType(), findFieldType(), fieldFinder(), get(), remainderFinder(), asInt(), remove(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
BlockEntityCustomNameToComponentFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityCustomNameToComponentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityCustomNameToComponentFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BlockEntityCustomNameToComponentFix#BlockEntityCustomNameToComponentFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityCustomNameToComponentFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntityCustomNameToComponentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
BlockEntityCustomNameToComponentFix instance = new BlockEntityCustomNameToComponentFix(schema, true);
net.minecraft.util.datafix.fixes.BlockEntityCustomNameToComponentFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityCustomNameToComponentFix.java:17 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fieldFinder(), namespacedString(), fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), getOptional().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockEntityFurnaceBurnTimeFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityFurnaceBurnTimeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityFurnaceBurnTimeFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.BlockEntityFurnaceBurnTimeFix#BlockEntityFurnaceBurnTimeFix(Schema,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityFurnaceBurnTimeFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntityFurnaceBurnTimeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaString string
ตัวอย่างใช้งาน
Schema schema = ...;
BlockEntityFurnaceBurnTimeFix instance = new BlockEntityFurnaceBurnTimeFix(schema, "value");
net.minecraft.util.datafix.fixes.BlockEntityFurnaceBurnTimeFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityFurnaceBurnTimeFix.java:20 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ BlockEntityFurnaceBurnTimeFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixBurnTime).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockEntityFurnaceBurnTimeFix#fixBurnTime(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityFurnaceBurnTimeFix.java:13 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixBurnTime ตาม implementation ของ BlockEntityFurnaceBurnTimeFix
ทำงานยังไง
เรียกต่อ: renameField(), setFieldIfPresent(), get(), result(). คืนค่า: dynamic.setFieldIfPresent("lit_total_time", dynamic.get("lit_time_remaining").result()).
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
BlockEntityFurnaceBurnTimeFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixBurnTime(dynamic);
BlockEntityIdFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityIdFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityIdFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BlockEntityIdFix#BlockEntityIdFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityIdFix.java:39 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntityIdFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockEntityIdFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityIdFix.java:43 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), getOutputSchema(), findChoiceType(), seq(), convertUnchecked(), fixTypeEverywhere(), mapFirst().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockEntityJukeboxFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityJukeboxFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityJukeboxFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.BlockEntityJukeboxFix#BlockEntityJukeboxFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityJukeboxFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntityJukeboxFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockEntityJukeboxFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityJukeboxFix.java:15 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ BlockEntityJukeboxFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getChoiceType(), findFieldType(), fieldFinder(), get(), remainderFinder(), asInt(), remove(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: typed.
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
BlockEntityKeepPacked
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityKeepPacked - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityKeepPacked.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.BlockEntityKeepPacked#BlockEntityKeepPacked(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityKeepPacked.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntityKeepPacked ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockEntityKeepPacked#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityKeepPacked.java:17 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ BlockEntityKeepPacked
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), BlockEntityKeepPacked::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
BlockEntityRenameFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BlockEntityRenameFix#create(Schema,String,UnaryOperator<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityRenameFix.java:26 - Modifiers:
public static - Return:
DataFix
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: BlockEntityRenameFix. คืนค่า: new BlockEntityRenameFix(schema, string, unaryOperator).
Parameters
Schema schemaString stringUnaryOperator<String> unaryOperator
ตัวอย่างใช้งาน
Schema schema = ...;
UnaryOperator<String> unaryOperator = ...;
DataFix result = BlockEntityRenameFix.create(schema, "value", unaryOperator);
net.minecraft.util.datafix.fixes.BlockEntityRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityRenameFix.java:19 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), findChoiceType(), getOutputSchema(), fixTypeEverywhere(), mapFirst(). คืนค่า: this.fixTypeEverywhere(this.name, taggedChoiceType, taggedChoiceType2, dynamicOps -> pair -> pair.mapFirst(this.nameChangeLookup)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockEntityShulkerBoxColorFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityShulkerBoxColorFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityShulkerBoxColorFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.BlockEntityShulkerBoxColorFix#BlockEntityShulkerBoxColorFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityShulkerBoxColorFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntityShulkerBoxColorFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
BlockEntityShulkerBoxColorFix instance = new BlockEntityShulkerBoxColorFix(schema, true);
net.minecraft.util.datafix.fixes.BlockEntityShulkerBoxColorFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityShulkerBoxColorFix.java:12 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ BlockEntityShulkerBoxColorFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), remove(). คืนค่า: typed.update(DSL.remainderFinder(), dynamic -> dynamic.remove("Color")).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
BlockEntitySignDoubleSidedEditableTextFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntitySignDoubleSidedEditableTextFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntitySignDoubleSidedEditableTextFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.BlockEntitySignDoubleSidedEditableTextFix#BlockEntitySignDoubleSidedEditableTextFix(Schema,String,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntitySignDoubleSidedEditableTextFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntitySignDoubleSidedEditableTextFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaString stringString string2
ตัวอย่างใช้งาน
Schema schema = ...;
BlockEntitySignDoubleSidedEditableTextFix instance = new BlockEntitySignDoubleSidedEditableTextFix(schema, "value", "value");
net.minecraft.util.datafix.fixes.BlockEntitySignDoubleSidedEditableTextFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntitySignDoubleSidedEditableTextFix.java:62 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ BlockEntitySignDoubleSidedEditableTextFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), BlockEntitySignDoubleSidedEditableTextFix::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
BlockEntitySignTextStrictJsonFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntitySignTextStrictJsonFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntitySignTextStrictJsonFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.BlockEntitySignTextStrictJsonFix#BlockEntitySignTextStrictJsonFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntitySignTextStrictJsonFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntitySignTextStrictJsonFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
BlockEntitySignTextStrictJsonFix instance = new BlockEntitySignTextStrictJsonFix(schema, true);
net.minecraft.util.datafix.fixes.BlockEntitySignTextStrictJsonFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntitySignTextStrictJsonFix.java:18 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ BlockEntitySignTextStrictJsonFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), updateLine(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
BlockEntityUUIDFix
- Full name:
net.minecraft.util.datafix.fixes.BlockEntityUUIDFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockEntityUUIDFix.java - Type:
class - Modifiers:
public - Extends:
AbstractUUIDFix
net.minecraft.util.datafix.fixes.BlockEntityUUIDFix#BlockEntityUUIDFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityUUIDFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockEntityUUIDFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockEntityUUIDFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockEntityUUIDFix.java:12 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), updateNamedChoice(). คืนค่า: this.updateNamedChoice(typed, "minecraft:skull", this::updateSkull).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockNameFlatteningFix
- Full name:
net.minecraft.util.datafix.fixes.BlockNameFlatteningFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockNameFlatteningFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BlockNameFlatteningFix#BlockNameFlatteningFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockNameFlatteningFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockNameFlatteningFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockNameFlatteningFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockNameFlatteningFix.java:18 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), getOutputSchema(), named(), typeName(), or(), intType(), namespacedString(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockPosFormatAndRenamesFix
- Full name:
net.minecraft.util.datafix.fixes.BlockPosFormatAndRenamesFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockPosFormatAndRenamesFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BlockPosFormatAndRenamesFix#BlockPosFormatAndRenamesFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockPosFormatAndRenamesFix.java:23 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockPosFormatAndRenamesFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
BlockPosFormatAndRenamesFix instance = new BlockPosFormatAndRenamesFix(schema);
net.minecraft.util.datafix.fixes.BlockPosFormatAndRenamesFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockPosFormatAndRenamesFix.java:49 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
มีการวนลูป. เรียกต่อ: addEntityRules(), addBlockEntityRules(), add(), fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(). สร้างออบเจ็กต์: ArrayList<>. คืนค่า: TypeRewriteRule.seq(list).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockRenameFix
- Full name:
net.minecraft.util.datafix.fixes.BlockRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockRenameFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.BlockRenameFix#BlockRenameFix(Schema,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockRenameFix.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name.
Parameters
Schema schemaString string
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockRenameFix#create(Schema,String,Function<String, String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockRenameFix.java:70 - Modifiers:
public static - Return:
DataFix
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: renameBlock(), apply(). สร้างออบเจ็กต์: BlockRenameFix. คืนค่า: new BlockRenameFix(schema, string) { @Override protected String renameBlock(String string) { return function.apply(string).
Parameters
Schema schemaString stringFunction<String, String> function
ตัวอย่างใช้งาน
Schema schema = ...;
Function<String, String> function = ...;
DataFix result = BlockRenameFix.create(schema, "value", function);
net.minecraft.util.datafix.fixes.BlockRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockRenameFix.java:24 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getInputSchema(), getType(), named(), typeName(), namespacedString(), equals(), fixTypeEverywhere(), mapSecond(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: TypeRewriteRule.seq(typeRewriteRule, typeRewriteRule2, typeRewriteRule3).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockRenameFix#renameBlock(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockRenameFix.java:68 - Modifiers:
protected abstract - Return:
String
คืออะไร
ดำเนินการ renameBlock ตาม implementation ของ BlockRenameFix
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
String string
ตัวอย่างใช้งาน
BlockStateData
- Full name:
net.minecraft.util.datafix.fixes.BlockStateData - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockStateData.java - Type:
class - Modifiers:
public
net.minecraft.util.datafix.fixes.BlockStateData#getTag(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockStateData.java:86 - Modifiers:
public static - Return:
Dynamic<?>
คืออะไร
อ่านค่า Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. คืนค่า: dynamic == null ? MAP[0] : dynamic.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockStateData#parse(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockStateData.java:77 - Modifiers:
public static - Return:
Dynamic<?>
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: parseTag(), replace(), error(). สร้างออบเจ็กต์: Dynamic<>, RuntimeException. คืนค่า: new Dynamic<>(NbtOps.INSTANCE, TagParser.parseTag(string.replace('\'', '"'))).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockStateData#upgradeBlock(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockStateData.java:68 - Modifiers:
public static - Return:
String
คืออะไร
ดำเนินการ upgradeBlock ตาม implementation ของ BlockStateData
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), asString(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockStateData#upgradeBlock(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockStateData.java:58 - Modifiers:
public static - Return:
String
คืออะไร
ดำเนินการ upgradeBlock ตาม implementation ของ BlockStateData
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInt(), get(), asString(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BlockStateData#upgradeBlockStateTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockStateData.java:48 - Modifiers:
public static - Return:
Dynamic<?>
คืออะไร
ดำเนินการ upgradeBlockStateTag ตาม implementation ของ BlockStateData
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
BlockStateStructureTemplateFix
- Full name:
net.minecraft.util.datafix.fixes.BlockStateStructureTemplateFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BlockStateStructureTemplateFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BlockStateStructureTemplateFix#BlockStateStructureTemplateFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockStateStructureTemplateFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockStateStructureTemplateFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
BlockStateStructureTemplateFix instance = new BlockStateStructureTemplateFix(schema, true);
net.minecraft.util.datafix.fixes.BlockStateStructureTemplateFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BlockStateStructureTemplateFix.java:13 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BoatSplitFix
- Full name:
net.minecraft.util.datafix.fixes.BoatSplitFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/BoatSplitFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.BoatSplitFix#BoatSplitFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BoatSplitFix.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BoatSplitFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.BoatSplitFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/BoatSplitFix.java:59 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fieldFinder(), namespacedString(), getInputSchema(), getType(), getOutputSchema(), fixTypeEverywhereTyped(), getOptional(), isPresent(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CarvingStepRemoveFix
- Full name:
net.minecraft.util.datafix.fixes.CarvingStepRemoveFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/CarvingStepRemoveFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.CarvingStepRemoveFix#CarvingStepRemoveFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CarvingStepRemoveFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CarvingStepRemoveFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.CarvingStepRemoveFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CarvingStepRemoveFix.java:16 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(). คืนค่า: this.fixTypeEverywhereTyped("CarvingStepRemoveFix", this.getInputSchema().getType(References.CHUNK), CarvingStepRemoveFix::fixChunk).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CatTypeFix
- Full name:
net.minecraft.util.datafix.fixes.CatTypeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/CatTypeFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.CatTypeFix#CatTypeFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CatTypeFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CatTypeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.CatTypeFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CatTypeFix.java:17 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ CatTypeFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.CatTypeFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CatTypeFix.java:13 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ CatTypeFix
ทำงานยังไง
เรียกต่อ: get(), asInt(), set(), createInt(). คืนค่า: dynamic.get("CatType").asInt(0) == 9 ? dynamic.set("CatType", dynamic.createInt(10)) : dynamic.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
CauldronRenameFix
- Full name:
net.minecraft.util.datafix.fixes.CauldronRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/CauldronRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.CauldronRenameFix#CauldronRenameFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CauldronRenameFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CauldronRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.CauldronRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CauldronRenameFix.java:27 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChestedHorsesInventoryZeroIndexingFix
- Full name:
net.minecraft.util.datafix.fixes.ChestedHorsesInventoryZeroIndexingFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChestedHorsesInventoryZeroIndexingFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChestedHorsesInventoryZeroIndexingFix#ChestedHorsesInventoryZeroIndexingFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChestedHorsesInventoryZeroIndexingFix.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChestedHorsesInventoryZeroIndexingFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
ChestedHorsesInventoryZeroIndexingFix instance = new ChestedHorsesInventoryZeroIndexingFix(schema);
net.minecraft.util.datafix.fixes.ChestedHorsesInventoryZeroIndexingFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChestedHorsesInventoryZeroIndexingFix.java:19 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: typeFinder(), getInputSchema(), getType(), seq(), horseLikeInventoryIndexingFixer().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkBedBlockEntityInjecterFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkBedBlockEntityInjecterFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkBedBlockEntityInjecterFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkBedBlockEntityInjecterFix#ChunkBedBlockEntityInjecterFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkBedBlockEntityInjecterFix.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkBedBlockEntityInjecterFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
ChunkBedBlockEntityInjecterFix instance = new ChunkBedBlockEntityInjecterFix(schema, true);
net.minecraft.util.datafix.fixes.ChunkBedBlockEntityInjecterFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkBedBlockEntityInjecterFix.java:24 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOutputSchema(), getType(), findFieldType(), cap(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.cap(type2, listType).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkBiomeFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkBiomeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkBiomeFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkBiomeFix#ChunkBiomeFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkBiomeFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkBiomeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkBiomeFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkBiomeFix.java:18 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder(), get(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkDeleteIgnoredLightDataFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkDeleteIgnoredLightDataFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkDeleteIgnoredLightDataFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkDeleteIgnoredLightDataFix#ChunkDeleteIgnoredLightDataFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkDeleteIgnoredLightDataFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkDeleteIgnoredLightDataFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
ChunkDeleteIgnoredLightDataFix instance = new ChunkDeleteIgnoredLightDataFix(schema);
net.minecraft.util.datafix.fixes.ChunkDeleteIgnoredLightDataFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkDeleteIgnoredLightDataFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), get(), remainderFinder(), asBoolean(), updateTyped().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkDeleteLightFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkDeleteLightFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkDeleteLightFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkDeleteLightFix#ChunkDeleteLightFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkDeleteLightFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkDeleteLightFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkDeleteLightFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkDeleteLightFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
มีการวนลูป. เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), getOutputSchema(), getVersionKey(), update(), remainderFinder(). คืนค่า: typed.updateTyped(opticFinder, typedx -> typedx.update(DSL.remainderFinder(), dynamic -> dynamic.remove("BlockLight").remove("SkyLight"))).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkHeightAndBiomeFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkHeightAndBiomeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkHeightAndBiomeFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkHeightAndBiomeFix#ceillog2(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkHeightAndBiomeFix.java:466 - Modifiers:
public static - Return:
int
คืออะไร
ดำเนินการ ceillog2 ตาม implementation ของ ChunkHeightAndBiomeFix
ทำงานยังไง
เรียกต่อ: ceil(), log(). คืนค่า: i == 0 ? 0 : (int)Math.ceil(Math.log(i) / Math.log(2.0)).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkHeightAndBiomeFix#ChunkHeightAndBiomeFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkHeightAndBiomeFix.java:102 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkHeightAndBiomeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkHeightAndBiomeFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkHeightAndBiomeFix.java:106 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getInputSchema(), getType(), findField(), type(), getOutputSchema(), fixTypeEverywhereTyped(), updateTyped(), get(). สร้างออบเจ็กต์: MutableBoolean, MutableObject<>, IntOpenHashSet, IllegalStateException. มีจุด return อย่างน้อย 6 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkLightRemoveFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkLightRemoveFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkLightRemoveFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkLightRemoveFix#ChunkLightRemoveFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkLightRemoveFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkLightRemoveFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkLightRemoveFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkLightRemoveFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findFieldType(), fieldFinder(), fixTypeEverywhereTyped(), getOutputSchema(), updateTyped(), update().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkPalettedStorageFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix#ChunkPalettedStorageFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java:45 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkPalettedStorageFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix#getName(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java:49 - Modifiers:
public static - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: get(), asString(). คืนค่า: dynamic.get("Name").asString("").
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix#getProperty(Dynamic<?>,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java:53 - Modifiers:
public static - Return:
String
คืออะไร
อ่านค่า Property
ทำงานยังไง
เรียกต่อ: get(), asString(). คืนค่า: dynamic.get("Properties").get(string).asString("").
Parameters
Dynamic<?> dynamicString string
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix#getSideMask(boolean,boolean,boolean,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java:80 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Side Mask
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. คืนค่า: i.
Parameters
boolean blboolean bl2boolean bl3boolean bl4
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix#idFor(CrudeIncrementalIntIdentityHashBiMap<Dynamic<?>>,Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java:57 - Modifiers:
public static - Return:
int
คืออะไร
ดำเนินการ idFor ตาม implementation ของ ChunkPalettedStorageFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getId(), add(). คืนค่า: i.
Parameters
CrudeIncrementalIntIdentityHashBiMap<Dynamic<?>> crudeIncrementalIntIdentityHashBiMapDynamic<?> dynamic
ตัวอย่างใช้งาน
CrudeIncrementalIntIdentityHashBiMap<Dynamic<?>> crudeIncrementalIntIdentityHashBiMap = ...;
Dynamic<?> dynamic = ...;
int result = ChunkPalettedStorageFix.idFor(crudeIncrementalIntIdentityHashBiMap, dynamic);
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java:73 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), getOutputSchema(), writeFixAndRead(). คืนค่า: this.writeFixAndRead("ChunkPalettedStorageFix", type, type2, this::fix).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkPalettedStorageFix$Direction
- Full name:
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix$Direction - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java - Type:
enum - Modifiers:
public
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix$Direction#getAxis()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java:157 - Modifiers:
public - Return:
ChunkPalettedStorageFix.Direction.Axis
คืออะไร
อ่านค่า Axis
ทำงานยังไง
คืนค่า: this.axis.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkPalettedStorageFix.Direction instance = ...;
ChunkPalettedStorageFix.Direction.Axis result = instance.getAxis();
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix$Direction#getAxisDirection()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java:153 - Modifiers:
public - Return:
ChunkPalettedStorageFix.Direction.AxisDirection
คืออะไร
อ่านค่า Axis Direction
ทำงานยังไง
คืนค่า: this.axisDirection.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkPalettedStorageFix.Direction instance = ...;
ChunkPalettedStorageFix.Direction.AxisDirection result = instance.getAxisDirection();
ChunkPalettedStorageFix$Direction$AxisDirection
- Full name:
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix$Direction$AxisDirection - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java - Type:
enum - Modifiers:
public
net.minecraft.util.datafix.fixes.ChunkPalettedStorageFix$Direction$AxisDirection#getStep()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkPalettedStorageFix.java:177 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Step
ทำงานยังไง
คืนค่า: this.step.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkProtoTickListFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkProtoTickListFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkProtoTickListFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkProtoTickListFix#ChunkProtoTickListFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkProtoTickListFix.java:34 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkProtoTickListFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkProtoTickListFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkProtoTickListFix.java:38 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), findField(), type(), getElement(), finder(), fixTypeEverywhereTyped(), updateTyped(). สร้างออบเจ็กต์: MutableInt, Int2ObjectArrayMap<>, ChunkProtoTickListFix.PoorMansPalettedContainer. มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkProtoTickListFix$PoorMansPalettedContainer
- Full name:
net.minecraft.util.datafix.fixes.ChunkProtoTickListFix$PoorMansPalettedContainer - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkProtoTickListFix.java - Type:
class - Modifiers:
public static final
net.minecraft.util.datafix.fixes.ChunkProtoTickListFix$PoorMansPalettedContainer#data()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkProtoTickListFix.java:230 - Modifiers:
public - Return:
long[]
คืออะไร
ดำเนินการ data ตาม implementation ของ ChunkProtoTickListFix$PoorMansPalettedContainer
ทำงานยังไง
คืนค่า: this.data.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkProtoTickListFix$PoorMansPalettedContainer#get(int,int,int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkProtoTickListFix.java:201 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
อ่านค่า get
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), getIndex(). มีจุด return อย่างน้อย 4 จุด.
Parameters
int iint jint k
ตัวอย่างใช้งาน
ChunkProtoTickListFix.PoorMansPalettedContainer instance = ...;
Dynamic<?> result = instance.get(0, 0, 0);
net.minecraft.util.datafix.fixes.ChunkProtoTickListFix$PoorMansPalettedContainer#palette()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkProtoTickListFix.java:226 - Modifiers:
public - Return:
List<? extends Dynamic<?>>
คืออะไร
ดำเนินการ palette ตาม implementation ของ ChunkProtoTickListFix$PoorMansPalettedContainer
ทำงานยังไง
คืนค่า: this.palette.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkProtoTickListFix.PoorMansPalettedContainer instance = ...;
List<? extends Dynamic<?>> result = instance.palette();
net.minecraft.util.datafix.fixes.ChunkProtoTickListFix$PoorMansPalettedContainer#PoorMansPalettedContainer(List<? extends Dynamic<?>>,long[])
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkProtoTickListFix.java:193 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkProtoTickListFix.PoorMansPalettedContainer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: palette, data, bits, mask, valuesPerLong. เรียกต่อ: max(), ceillog2(), size().
Parameters
List<? extends Dynamic<?>> listlong[] ls
ตัวอย่างใช้งาน
List<? extends Dynamic<?>> list = ...;
long[] ls = ...;
ChunkProtoTickListFix.PoorMansPalettedContainer instance = new ChunkProtoTickListFix.PoorMansPalettedContainer(list, ls);
ChunkRenamesFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkRenamesFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkRenamesFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkRenamesFix#ChunkRenamesFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkRenamesFix.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkRenamesFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkRenamesFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkRenamesFix.java:24 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), type(), getOutputSchema(), findFieldType(), fixTypeEverywhereTyped(), getTyped(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkStatusFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkStatusFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkStatusFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkStatusFix#ChunkStatusFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkStatusFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkStatusFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkStatusFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkStatusFix.java:17 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), findFieldType(), fieldFinder(), fixTypeEverywhereTyped(), getOutputSchema(), updateTyped(), get(). คืนค่า: typedx.set(DSL.remainderFinder(), dynamic).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkStatusFix2
- Full name:
net.minecraft.util.datafix.fixes.ChunkStatusFix2 - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkStatusFix2.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkStatusFix2#ChunkStatusFix2(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkStatusFix2.java:28 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkStatusFix2 ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkStatusFix2#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkStatusFix2.java:32 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findFieldType(), fieldFinder(), fixTypeEverywhereTyped(), getOutputSchema(), updateTyped(), get(). คืนค่า: Objects.equals(string, string2) ? typedx : typedx.set(DSL.remainderFinder(), dynamic.set("Status", dynamic.createString(string2))).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkStructuresTemplateRenameFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkStructuresTemplateRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkStructuresTemplateRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkStructuresTemplateRenameFix#ChunkStructuresTemplateRenameFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkStructuresTemplateRenameFix.java:122 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkStructuresTemplateRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
ChunkStructuresTemplateRenameFix instance = new ChunkStructuresTemplateRenameFix(schema, true);
net.minecraft.util.datafix.fixes.ChunkStructuresTemplateRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkStructuresTemplateRenameFix.java:126 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder(). คืนค่า: this.fixTypeEverywhereTyped("ChunkStructuresTemplateRenameFix", type, typed -> typed.update(DSL.remainderFinder(), this::fixChildren)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ChunkToProtochunkFix
- Full name:
net.minecraft.util.datafix.fixes.ChunkToProtochunkFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ChunkToProtochunkFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ChunkToProtochunkFix#ChunkToProtochunkFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkToProtochunkFix.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkToProtochunkFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ChunkToProtochunkFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ChunkToProtochunkFix.java:22 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: writeFixAndRead(), getInputSchema(), getType(), getOutputSchema(), update().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ColorlessShulkerEntityFix
- Full name:
net.minecraft.util.datafix.fixes.ColorlessShulkerEntityFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ColorlessShulkerEntityFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.ColorlessShulkerEntityFix#ColorlessShulkerEntityFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ColorlessShulkerEntityFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ColorlessShulkerEntityFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
ColorlessShulkerEntityFix instance = new ColorlessShulkerEntityFix(schema, true);
net.minecraft.util.datafix.fixes.ColorlessShulkerEntityFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ColorlessShulkerEntityFix.java:12 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ ColorlessShulkerEntityFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), get(), asInt(), set(), createByte(). คืนค่า: typed.update(DSL.remainderFinder(), dynamic -> dynamic.get("Color").asInt(0) == 10 ? dynamic.set("Color", dynamic.createByte((byte)16)) : dynamic).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
ContainerBlockEntityLockPredicateFix
- Full name:
net.minecraft.util.datafix.fixes.ContainerBlockEntityLockPredicateFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ContainerBlockEntityLockPredicateFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ContainerBlockEntityLockPredicateFix#ContainerBlockEntityLockPredicateFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ContainerBlockEntityLockPredicateFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ContainerBlockEntityLockPredicateFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
ContainerBlockEntityLockPredicateFix instance = new ContainerBlockEntityLockPredicateFix(schema);
net.minecraft.util.datafix.fixes.ContainerBlockEntityLockPredicateFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ContainerBlockEntityLockPredicateFix.java:14 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), findChoiceType().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CriteriaRenameFix
- Full name:
net.minecraft.util.datafix.fixes.CriteriaRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/CriteriaRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.CriteriaRenameFix#CriteriaRenameFix(Schema,String,String,UnaryOperator<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CriteriaRenameFix.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CriteriaRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, advancementId, conversions.
Parameters
Schema schemaString stringString string2UnaryOperator<String> unaryOperator
ตัวอย่างใช้งาน
Schema schema = ...;
UnaryOperator<String> unaryOperator = ...;
CriteriaRenameFix instance = new CriteriaRenameFix(schema, "value", "value", unaryOperator);
net.minecraft.util.datafix.fixes.CriteriaRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CriteriaRenameFix.java:23 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CustomModelDataExpandFix
- Full name:
net.minecraft.util.datafix.fixes.CustomModelDataExpandFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/CustomModelDataExpandFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.CustomModelDataExpandFix#CustomModelDataExpandFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CustomModelDataExpandFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CustomModelDataExpandFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.CustomModelDataExpandFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/CustomModelDataExpandFix.java:16 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder(), asNumber(), floatValue(), createMap(). คืนค่า: dynamicx.createMap(Map.of(dynamicx.createString("floats"), dynamicx.createList(Stream.of(dynamicx.createFloat(f))))).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DataComponentRemainderFix
- Full name:
net.minecraft.util.datafix.fixes.DataComponentRemainderFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/DataComponentRemainderFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.DataComponentRemainderFix#DataComponentRemainderFix(Schema,String,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/DataComponentRemainderFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DataComponentRemainderFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaString stringString string2
ตัวอย่างใช้งาน
Schema schema = ...;
DataComponentRemainderFix instance = new DataComponentRemainderFix(schema, "value", "value");
net.minecraft.util.datafix.fixes.DataComponentRemainderFix#DataComponentRemainderFix(Schema,String,String,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/DataComponentRemainderFix.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DataComponentRemainderFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, componentId, newComponentId.
Parameters
Schema schemaString stringString string2String string3
ตัวอย่างใช้งาน
Schema schema = ...;
DataComponentRemainderFix instance = new DataComponentRemainderFix(schema, "value", "value", "value");
net.minecraft.util.datafix.fixes.DataComponentRemainderFix#fixComponent(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/DataComponentRemainderFix.java:42 - Modifiers:
protected abstract - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixComponent ตาม implementation ของ DataComponentRemainderFix
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fixComponent(Dynamic<T> dynamic) {
return super.fixComponent(dynamic);
}
net.minecraft.util.datafix.fixes.DataComponentRemainderFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/DataComponentRemainderFix.java:28 - Modifiers:
public final - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder(), get(), result(), isEmpty(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DecoratedPotFieldRenameFix
- Full name:
net.minecraft.util.datafix.fixes.DecoratedPotFieldRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/DecoratedPotFieldRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.DecoratedPotFieldRenameFix#DecoratedPotFieldRenameFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/DecoratedPotFieldRenameFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DecoratedPotFieldRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.DecoratedPotFieldRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/DecoratedPotFieldRenameFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getChoiceType(), getOutputSchema(), convertUnchecked(). คืนค่า: this.convertUnchecked("DecoratedPotFieldRenameFix", type, type2).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DropInvalidSignDataFix
- Full name:
net.minecraft.util.datafix.fixes.DropInvalidSignDataFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/DropInvalidSignDataFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.DropInvalidSignDataFix#DropInvalidSignDataFix(Schema,String,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/DropInvalidSignDataFix.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DropInvalidSignDataFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaString stringString string2
ตัวอย่างใช้งาน
Schema schema = ...;
DropInvalidSignDataFix instance = new DropInvalidSignDataFix(schema, "value", "value");
net.minecraft.util.datafix.fixes.DropInvalidSignDataFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/DropInvalidSignDataFix.java:55 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ DropInvalidSignDataFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), DropInvalidSignDataFix::fix).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
EffectDurationFix
- Full name:
net.minecraft.util.datafix.fixes.EffectDurationFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EffectDurationFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EffectDurationFix#EffectDurationFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EffectDurationFix.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EffectDurationFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EffectDurationFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EffectDurationFix.java:23 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), seq(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EmptyItemInHotbarFix
- Full name:
net.minecraft.util.datafix.fixes.EmptyItemInHotbarFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EmptyItemInHotbarFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EmptyItemInHotbarFix#EmptyItemInHotbarFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EmptyItemInHotbarFix.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EmptyItemInHotbarFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EmptyItemInHotbarFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EmptyItemInHotbarFix.java:20 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: typeFinder(), getInputSchema(), getType(), fixTypeEverywhereTyped(), update(), mapSecond(), getFirst(), left(). คืนค่า: !bl && !bl2 ? pairx : Pair.of(Either.right(Unit.INSTANCE), Pair.of(Either.right(Unit.INSTANCE), dynamic.emptyMap())).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EmptyItemInVillagerTradeFix
- Full name:
net.minecraft.util.datafix.fixes.EmptyItemInVillagerTradeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EmptyItemInVillagerTradeFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EmptyItemInVillagerTradeFix#EmptyItemInVillagerTradeFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EmptyItemInVillagerTradeFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EmptyItemInVillagerTradeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
EmptyItemInVillagerTradeFix instance = new EmptyItemInVillagerTradeFix(schema);
net.minecraft.util.datafix.fixes.EmptyItemInVillagerTradeFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EmptyItemInVillagerTradeFix.java:15 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), writeFixAndRead(), get(), orElseEmptyMap(), ensureNamespaced(), asString(), asInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityArmorStandSilentFix
- Full name:
net.minecraft.util.datafix.fixes.EntityArmorStandSilentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityArmorStandSilentFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityArmorStandSilentFix#EntityArmorStandSilentFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityArmorStandSilentFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityArmorStandSilentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityArmorStandSilentFix instance = new EntityArmorStandSilentFix(schema, true);
net.minecraft.util.datafix.fixes.EntityArmorStandSilentFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityArmorStandSilentFix.java:17 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityArmorStandSilentFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityArmorStandSilentFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityArmorStandSilentFix.java:13 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityArmorStandSilentFix
ทำงานยังไง
เรียกต่อ: get(), asBoolean(), remove(). คืนค่า: dynamic.get("Silent").asBoolean(false) && !dynamic.get("Marker").asBoolean(false) ? dynamic.remove("Silent") : dynamic.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityArmorStandSilentFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
EntityAttributeBaseValueFix
- Full name:
net.minecraft.util.datafix.fixes.EntityAttributeBaseValueFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityAttributeBaseValueFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityAttributeBaseValueFix#EntityAttributeBaseValueFix(Schema,String,String,String,DoubleUnaryOperator)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityAttributeBaseValueFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityAttributeBaseValueFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: attributeId, valueFixer.
Parameters
Schema schemaString stringString string2String string3DoubleUnaryOperator doubleUnaryOperator
ตัวอย่างใช้งาน
Schema schema = ...;
DoubleUnaryOperator doubleUnaryOperator = ...;
EntityAttributeBaseValueFix instance = new EntityAttributeBaseValueFix(schema, "value", "value", "value", doubleUnaryOperator);
net.minecraft.util.datafix.fixes.EntityAttributeBaseValueFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityAttributeBaseValueFix.java:20 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityAttributeBaseValueFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixValue).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
EntityBlockStateFix
- Full name:
net.minecraft.util.datafix.fixes.EntityBlockStateFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityBlockStateFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityBlockStateFix#EntityBlockStateFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityBlockStateFix.java:278 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityBlockStateFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityBlockStateFix#getBlockId(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityBlockStateFix.java:282 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Block Id
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: integer == null ? 0 : integer.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityBlockStateFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityBlockStateFix.java:287 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getOutputSchema(), updateBlockToBlockState(), and(), optional(), field(), named(), typeName(). คืนค่า: this.updateEntity(typed, "minecraft:spawner_minecart", function).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityBrushableBlockFieldsRenameFix
- Full name:
net.minecraft.util.datafix.fixes.EntityBrushableBlockFieldsRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityBrushableBlockFieldsRenameFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityBrushableBlockFieldsRenameFix#EntityBrushableBlockFieldsRenameFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityBrushableBlockFieldsRenameFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityBrushableBlockFieldsRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
EntityBrushableBlockFieldsRenameFix instance = new EntityBrushableBlockFieldsRenameFix(schema);
net.minecraft.util.datafix.fixes.EntityBrushableBlockFieldsRenameFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityBrushableBlockFieldsRenameFix.java:17 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityBrushableBlockFieldsRenameFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityBrushableBlockFieldsRenameFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityBrushableBlockFieldsRenameFix.java:13 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityBrushableBlockFieldsRenameFix
ทำงานยังไง
เรียกต่อ: renameField(). คืนค่า: dynamic.renameField("loot_table", "LootTable").renameField("loot_table_seed", "LootTableSeed").
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityBrushableBlockFieldsRenameFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
EntityCatSplitFix
- Full name:
net.minecraft.util.datafix.fixes.EntityCatSplitFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityCatSplitFix.java - Type:
class - Modifiers:
public - Extends:
SimpleEntityRenameFix
net.minecraft.util.datafix.fixes.EntityCatSplitFix#EntityCatSplitFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityCatSplitFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityCatSplitFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityCatSplitFix#getNewNameAndTag(String,Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityCatSplitFix.java:13 - Modifiers:
protected - Return:
Pair<String, Dynamic<?>>
คืออะไร
อ่านค่า New Name And Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), get(), asInt(), asString(), length(), set(), createBoolean(), createInt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String stringDynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Pair<String, Dynamic<?>> getNewNameAndTag(String string, Dynamic<?> dynamic) {
return super.getNewNameAndTag(string, dynamic);
}
EntityCodSalmonFix
- Full name:
net.minecraft.util.datafix.fixes.EntityCodSalmonFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityCodSalmonFix.java - Type:
class - Modifiers:
public - Extends:
SimplestEntityRenameFix
net.minecraft.util.datafix.fixes.EntityCodSalmonFix#EntityCodSalmonFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityCodSalmonFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityCodSalmonFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityCodSalmonFix#rename(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityCodSalmonFix.java:21 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ rename ตาม implementation ของ EntityCodSalmonFix
ทำงานยังไง
เรียกต่อ: getOrDefault(). คืนค่า: RENAMED_IDS.getOrDefault(string, string).
Parameters
String string
ตัวอย่างใช้งาน
EntityCustomNameToComponentFix
- Full name:
net.minecraft.util.datafix.fixes.EntityCustomNameToComponentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityCustomNameToComponentFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityCustomNameToComponentFix#EntityCustomNameToComponentFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityCustomNameToComponentFix.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityCustomNameToComponentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityCustomNameToComponentFix instance = new EntityCustomNameToComponentFix(schema, true);
net.minecraft.util.datafix.fixes.EntityCustomNameToComponentFix#fixTagCustomName(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityCustomNameToComponentFix.java:30 - Modifiers:
public static - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTagCustomName ตาม implementation ของ EntityCustomNameToComponentFix
ทำงานยังไง
เรียกต่อ: get(), asString(), isEmpty(), remove(), set(), createPlainTextComponent(), getOps(). คืนค่า: string.isEmpty() ? dynamic.remove("CustomName") : dynamic.set("CustomName", ComponentDataFixUtils.createPlainTextComponent(dynamic.getOps(), string)).
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
Dynamic<?> result = EntityCustomNameToComponentFix.fixTagCustomName(dynamic);
net.minecraft.util.datafix.fixes.EntityCustomNameToComponentFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityCustomNameToComponentFix.java:19 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fieldFinder(), namespacedString(), fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), getOptional(). คืนค่า: optional.isPresent() && Objects.equals(optional.get(), "minecraft:commandblock_minecart") ? dynamic : fixTagCustomName(dynamic).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityElderGuardianSplitFix
- Full name:
net.minecraft.util.datafix.fixes.EntityElderGuardianSplitFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityElderGuardianSplitFix.java - Type:
class - Modifiers:
public - Extends:
SimpleEntityRenameFix
net.minecraft.util.datafix.fixes.EntityElderGuardianSplitFix#EntityElderGuardianSplitFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityElderGuardianSplitFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityElderGuardianSplitFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityElderGuardianSplitFix instance = new EntityElderGuardianSplitFix(schema, true);
net.minecraft.util.datafix.fixes.EntityElderGuardianSplitFix#getNewNameAndTag(String,Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityElderGuardianSplitFix.java:13 - Modifiers:
protected - Return:
Pair<String, Dynamic<?>>
คืออะไร
อ่านค่า New Name And Tag
ทำงานยังไง
เรียกต่อ: of(), equals(), get(), asBoolean(). คืนค่า: Pair.of(Objects.equals(string, "Guardian") && dynamic.get("Elder").asBoolean(false) ? "ElderGuardian" : string, dynamic).
Parameters
String stringDynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Pair<String, Dynamic<?>> getNewNameAndTag(String string, Dynamic<?> dynamic) {
return super.getNewNameAndTag(string, dynamic);
}
EntityEquipmentToArmorAndHandFix
- Full name:
net.minecraft.util.datafix.fixes.EntityEquipmentToArmorAndHandFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityEquipmentToArmorAndHandFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityEquipmentToArmorAndHandFix#EntityEquipmentToArmorAndHandFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityEquipmentToArmorAndHandFix.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityEquipmentToArmorAndHandFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityEquipmentToArmorAndHandFix instance = new EntityEquipmentToArmorAndHandFix(schema, true);
net.minecraft.util.datafix.fixes.EntityEquipmentToArmorAndHandFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityEquipmentToArmorAndHandFix.java:24 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: cap(), getInputSchema(), getTypeRaw(). คืนค่า: this.cap(this.getInputSchema().getTypeRaw(References.ITEM_STACK)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityFieldsRenameFix
- Full name:
net.minecraft.util.datafix.fixes.EntityFieldsRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityFieldsRenameFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityFieldsRenameFix#EntityFieldsRenameFix(Schema,String,String,Map<String, String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityFieldsRenameFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityFieldsRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: renames.
Parameters
Schema schemaString stringString string2Map<String, String> map
ตัวอย่างใช้งาน
Schema schema = ...;
Map<String, String> map = ...;
EntityFieldsRenameFix instance = new EntityFieldsRenameFix(schema, "value", "value", map);
net.minecraft.util.datafix.fixes.EntityFieldsRenameFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityFieldsRenameFix.java:26 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityFieldsRenameFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityFieldsRenameFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityFieldsRenameFix.java:18 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityFieldsRenameFix
ทำงานยังไง
มีการวนลูป. เรียกต่อ: entrySet(), renameField(), getKey(), getValue(). คืนค่า: dynamic.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityFieldsRenameFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
EntityGoatMissingStateFix
- Full name:
net.minecraft.util.datafix.fixes.EntityGoatMissingStateFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityGoatMissingStateFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityGoatMissingStateFix#EntityGoatMissingStateFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityGoatMissingStateFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityGoatMissingStateFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityGoatMissingStateFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityGoatMissingStateFix.java:12 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityGoatMissingStateFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), set(), createBoolean(). คืนค่า: typed.update( DSL.remainderFinder(), dynamic -> dynamic.set("HasLeftHorn", dynamic.createBoolean(true)).set("HasRightHorn", dynamic.createBoolean(true)) ).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
EntityHealthFix
- Full name:
net.minecraft.util.datafix.fixes.EntityHealthFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityHealthFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityHealthFix#EntityHealthFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityHealthFix.java:50 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityHealthFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityHealthFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityHealthFix.java:54 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityHealthFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), asNumber(), result(), isPresent(), floatValue(), remove(), set(), createFloat(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityHealthFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
net.minecraft.util.datafix.fixes.EntityHealthFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityHealthFix.java:72 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityHorseSaddleFix
- Full name:
net.minecraft.util.datafix.fixes.EntityHorseSaddleFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityHorseSaddleFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityHorseSaddleFix#EntityHorseSaddleFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityHorseSaddleFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityHorseSaddleFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityHorseSaddleFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityHorseSaddleFix.java:18 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityHorseSaddleFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fieldFinder(), named(), typeName(), namespacedString(), getInputSchema(), getTypeRaw(), getOptionalTyped(), get(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
EntityHorseSplitFix
- Full name:
net.minecraft.util.datafix.fixes.EntityHorseSplitFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityHorseSplitFix.java - Type:
class - Modifiers:
public - Extends:
EntityRenameFix
net.minecraft.util.datafix.fixes.EntityHorseSplitFix#EntityHorseSplitFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityHorseSplitFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityHorseSplitFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityHorseSplitFix#fix(String,Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityHorseSplitFix.java:17 - Modifiers:
protected - Return:
Pair<String, Typed<?>>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityHorseSplitFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: equals(), get(), remainderFinder(), asInt(), getOutputSchema(), findChoiceType(), types(), of(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String stringTyped<?> typed
ตัวอย่างใช้งาน
Typed<?> typed = ...;
@Override
protected Pair<String, Typed<?>> fix(String string, Typed<?> typed) {
return super.fix(string, typed);
}
EntityIdFix
- Full name:
net.minecraft.util.datafix.fixes.EntityIdFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityIdFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityIdFix#EntityIdFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityIdFix.java:91 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityIdFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityIdFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityIdFix.java:95 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), findChoiceType(), getOutputSchema(), getType(), seq(), convertUnchecked(), fixTypeEverywhere(), mapFirst().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityItemFrameDirectionFix
- Full name:
net.minecraft.util.datafix.fixes.EntityItemFrameDirectionFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityItemFrameDirectionFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityItemFrameDirectionFix#EntityItemFrameDirectionFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityItemFrameDirectionFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityItemFrameDirectionFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityItemFrameDirectionFix instance = new EntityItemFrameDirectionFix(schema, true);
net.minecraft.util.datafix.fixes.EntityItemFrameDirectionFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityItemFrameDirectionFix.java:17 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityItemFrameDirectionFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityItemFrameDirectionFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityItemFrameDirectionFix.java:13 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityItemFrameDirectionFix
ทำงานยังไง
เรียกต่อ: set(), createByte(), direction2dTo3d(), get(), asByte(). คืนค่า: dynamic.set("Facing", dynamic.createByte(direction2dTo3d(dynamic.get("Facing").asByte((byte)0)))).
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityItemFrameDirectionFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
EntityMinecartIdentifiersFix
- Full name:
net.minecraft.util.datafix.fixes.EntityMinecartIdentifiersFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityMinecartIdentifiersFix.java - Type:
class - Modifiers:
public - Extends:
EntityRenameFix
net.minecraft.util.datafix.fixes.EntityMinecartIdentifiersFix#EntityMinecartIdentifiersFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityMinecartIdentifiersFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityMinecartIdentifiersFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
EntityMinecartIdentifiersFix instance = new EntityMinecartIdentifiersFix(schema);
net.minecraft.util.datafix.fixes.EntityMinecartIdentifiersFix#fix(String,Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityMinecartIdentifiersFix.java:15 - Modifiers:
protected - Return:
Pair<String, Typed<?>>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityMinecartIdentifiersFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: equals(), of(), getOrCreate(), remainderFinder(), get(), asInt(), getOutputSchema(), findChoiceType(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String stringTyped<?> typed
ตัวอย่างใช้งาน
Typed<?> typed = ...;
@Override
protected Pair<String, Typed<?>> fix(String string, Typed<?> typed) {
return super.fix(string, typed);
}
EntityPaintingItemFrameDirectionFix
- Full name:
net.minecraft.util.datafix.fixes.EntityPaintingItemFrameDirectionFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityPaintingItemFrameDirectionFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityPaintingItemFrameDirectionFix#EntityPaintingItemFrameDirectionFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityPaintingItemFrameDirectionFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityPaintingItemFrameDirectionFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityPaintingItemFrameDirectionFix instance = new EntityPaintingItemFrameDirectionFix(schema, true);
net.minecraft.util.datafix.fixes.EntityPaintingItemFrameDirectionFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityPaintingItemFrameDirectionFix.java:42 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getChoiceType(), namedChoice(), getType(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder(). คืนค่า: TypeRewriteRule.seq(typeRewriteRule, typeRewriteRule2).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityPaintingMotiveFix
- Full name:
net.minecraft.util.datafix.fixes.EntityPaintingMotiveFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityPaintingMotiveFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityPaintingMotiveFix#EntityPaintingMotiveFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityPaintingMotiveFix.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityPaintingMotiveFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityPaintingMotiveFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityPaintingMotiveFix.java:35 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityPaintingMotiveFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityPaintingMotiveFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityPaintingMotiveFix.java:25 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityPaintingMotiveFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), asString(), result(), isPresent(), toLowerCase(), set(), createString(), ensureNamespaced(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityPaintingMotiveFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
EntityProjectileOwnerFix
- Full name:
net.minecraft.util.datafix.fixes.EntityProjectileOwnerFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityProjectileOwnerFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityProjectileOwnerFix#EntityProjectileOwnerFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityProjectileOwnerFix.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityProjectileOwnerFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityProjectileOwnerFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityProjectileOwnerFix.java:19 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), fixTypeEverywhereTyped(), getType(). คืนค่า: this.fixTypeEverywhereTyped("EntityProjectileOwner", schema.getType(References.ENTITY), this::updateProjectiles).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityPufferfishRenameFix
- Full name:
net.minecraft.util.datafix.fixes.EntityPufferfishRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityPufferfishRenameFix.java - Type:
class - Modifiers:
public - Extends:
SimplestEntityRenameFix
net.minecraft.util.datafix.fixes.EntityPufferfishRenameFix#EntityPufferfishRenameFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityPufferfishRenameFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityPufferfishRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityPufferfishRenameFix instance = new EntityPufferfishRenameFix(schema, true);
net.minecraft.util.datafix.fixes.EntityPufferfishRenameFix#rename(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityPufferfishRenameFix.java:17 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ rename ตาม implementation ของ EntityPufferfishRenameFix
ทำงานยังไง
เรียกต่อ: equals(). คืนค่า: Objects.equals("minecraft:puffer_fish", string) ? "minecraft:pufferfish" : string.
Parameters
String string
ตัวอย่างใช้งาน
EntityRavagerRenameFix
- Full name:
net.minecraft.util.datafix.fixes.EntityRavagerRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityRavagerRenameFix.java - Type:
class - Modifiers:
public - Extends:
SimplestEntityRenameFix
net.minecraft.util.datafix.fixes.EntityRavagerRenameFix#EntityRavagerRenameFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityRavagerRenameFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityRavagerRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityRavagerRenameFix#rename(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityRavagerRenameFix.java:17 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ rename ตาม implementation ของ EntityRavagerRenameFix
ทำงานยังไง
เรียกต่อ: equals(). คืนค่า: Objects.equals("minecraft:illager_beast", string) ? "minecraft:ravager" : string.
Parameters
String string
ตัวอย่างใช้งาน
EntityRedundantChanceTagsFix
- Full name:
net.minecraft.util.datafix.fixes.EntityRedundantChanceTagsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityRedundantChanceTagsFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityRedundantChanceTagsFix#EntityRedundantChanceTagsFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityRedundantChanceTagsFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityRedundantChanceTagsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityRedundantChanceTagsFix instance = new EntityRedundantChanceTagsFix(schema, true);
net.minecraft.util.datafix.fixes.EntityRedundantChanceTagsFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityRedundantChanceTagsFix.java:18 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), isZeroList(), get(), remove(). คืนค่า: dynamic.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityRenameFix
- Full name:
net.minecraft.util.datafix.fixes.EntityRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityRenameFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityRenameFix#EntityRenameFix(String,Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityRenameFix.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name.
Parameters
String stringSchema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityRenameFix#fix(String,Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityRenameFix.java:49 - Modifiers:
protected abstract - Return:
Pair<String, Typed<?>>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityRenameFix
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
String stringTyped<?> typed
ตัวอย่างใช้งาน
Typed<?> typed = ...;
@Override
protected Pair<String, Typed<?>> fix(String string, Typed<?> typed) {
return super.fix(string, typed);
}
net.minecraft.util.datafix.fixes.EntityRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityRenameFix.java:24 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), findChoiceType(), getOutputSchema(), memoize(), types(), get(), patchSubType(), fixTypeEverywhere(). สร้างออบเจ็กต์: IllegalStateException. มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityRidingToPassengersFix
- Full name:
net.minecraft.util.datafix.fixes.EntityRidingToPassengersFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityRidingToPassengersFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityRidingToPassengersFix#EntityRidingToPassengersFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityRidingToPassengersFix.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityRidingToPassengersFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityRidingToPassengersFix instance = new EntityRidingToPassengersFix(schema, true);
net.minecraft.util.datafix.fixes.EntityRidingToPassengersFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityRidingToPassengersFix.java:24 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getOutputSchema(), getTypeRaw(), cap(). คืนค่า: this.cap(schema, schema2, type, type2, type3).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntitySalmonSizeFix
- Full name:
net.minecraft.util.datafix.fixes.EntitySalmonSizeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntitySalmonSizeFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntitySalmonSizeFix#EntitySalmonSizeFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntitySalmonSizeFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntitySalmonSizeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntitySalmonSizeFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntitySalmonSizeFix.java:12 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntitySalmonSizeFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), get(), asString(), equals(), set(), createString(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
EntityShulkerColorFix
- Full name:
net.minecraft.util.datafix.fixes.EntityShulkerColorFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityShulkerColorFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityShulkerColorFix#EntityShulkerColorFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityShulkerColorFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityShulkerColorFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityShulkerColorFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityShulkerColorFix.java:17 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityShulkerColorFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityShulkerColorFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityShulkerColorFix.java:13 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityShulkerColorFix
ทำงานยังไง
เรียกต่อ: get(), map(), result(), isEmpty(), set(), createByte(). คืนค่า: dynamic.get("Color").map(Dynamic::asNumber).result().isEmpty() ? dynamic.set("Color", dynamic.createByte((byte)10)) : dynamic.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityShulkerColorFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
EntityShulkerRotationFix
- Full name:
net.minecraft.util.datafix.fixes.EntityShulkerRotationFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityShulkerRotationFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityShulkerRotationFix#EntityShulkerRotationFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityShulkerRotationFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityShulkerRotationFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityShulkerRotationFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityShulkerRotationFix.java:24 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityShulkerRotationFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityShulkerRotationFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityShulkerRotationFix.java:14 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityShulkerRotationFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), asList(), asDouble(), isEmpty(), set(), createList(), stream(), map(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityShulkerRotationFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
EntitySkeletonSplitFix
- Full name:
net.minecraft.util.datafix.fixes.EntitySkeletonSplitFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntitySkeletonSplitFix.java - Type:
class - Modifiers:
public - Extends:
SimpleEntityRenameFix
net.minecraft.util.datafix.fixes.EntitySkeletonSplitFix#EntitySkeletonSplitFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntitySkeletonSplitFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntitySkeletonSplitFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntitySkeletonSplitFix#getNewNameAndTag(String,Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntitySkeletonSplitFix.java:13 - Modifiers:
protected - Return:
Pair<String, Dynamic<?>>
คืออะไร
อ่านค่า New Name And Tag
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), get(), asInt(), of(). คืนค่า: Pair.of(string, dynamic).
Parameters
String stringDynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Pair<String, Dynamic<?>> getNewNameAndTag(String string, Dynamic<?> dynamic) {
return super.getNewNameAndTag(string, dynamic);
}
EntityStringUuidFix
- Full name:
net.minecraft.util.datafix.fixes.EntityStringUuidFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityStringUuidFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EntityStringUuidFix#EntityStringUuidFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityStringUuidFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityStringUuidFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityStringUuidFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityStringUuidFix.java:15 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), get(), asString(), result(). คืนค่า: dynamic.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EntityTheRenameningFix
- Full name:
net.minecraft.util.datafix.fixes.EntityTheRenameningFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityTheRenameningFix.java - Type:
class - Modifiers:
public - Extends:
SimplestEntityRenameFix
net.minecraft.util.datafix.fixes.EntityTheRenameningFix#EntityTheRenameningFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityTheRenameningFix.java:47 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityTheRenameningFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityTheRenameningFix#rename(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityTheRenameningFix.java:51 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ rename ตาม implementation ของ EntityTheRenameningFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: startsWith(), substring(), length(), getOrDefault(). คืนค่า: RENAMED_IDS.getOrDefault(string, string).
Parameters
String string
ตัวอย่างใช้งาน
EntityTippedArrowFix
- Full name:
net.minecraft.util.datafix.fixes.EntityTippedArrowFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityTippedArrowFix.java - Type:
class - Modifiers:
public - Extends:
SimplestEntityRenameFix
net.minecraft.util.datafix.fixes.EntityTippedArrowFix#EntityTippedArrowFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityTippedArrowFix.java:7 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityTippedArrowFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityTippedArrowFix#rename(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityTippedArrowFix.java:11 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ rename ตาม implementation ของ EntityTippedArrowFix
ทำงานยังไง
เรียกต่อ: equals(). คืนค่า: Objects.equals(string, "TippedArrow") ? "Arrow" : string.
Parameters
String string
ตัวอย่างใช้งาน
EntityUUIDFix
- Full name:
net.minecraft.util.datafix.fixes.EntityUUIDFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityUUIDFix.java - Type:
class - Modifiers:
public - Extends:
AbstractUUIDFix
net.minecraft.util.datafix.fixes.EntityUUIDFix#EntityUUIDFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityUUIDFix.java:23 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityUUIDFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityUUIDFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityUUIDFix.java:27 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
มีการวนลูป. เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), updateNamedChoice(). คืนค่า: this.updateNamedChoice(typed, "minecraft:piglin", EntityUUIDFix::updatePiglin).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityUUIDFix#updateEntityUUID(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityUUIDFix.java:149 - Modifiers:
public static - Return:
Dynamic<?>
คืออะไร
อัปเดต Entity UUID
ทำงานยังไง
เรียกต่อ: replaceUUIDLeastMost(), orElse(). คืนค่า: replaceUUIDLeastMost(dynamic, "UUID", "UUID").orElse(dynamic).
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityUUIDFix#updateLivingEntity(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityUUIDFix.java:130 - Modifiers:
public static - Return:
Dynamic<?>
คืออะไร
อัปเดต Living Entity
ทำงานยังไง
เรียกต่อ: update(), createList(), asStream(), map(), replaceUUIDLeastMost(), orElse().
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityVariantFix
- Full name:
net.minecraft.util.datafix.fixes.EntityVariantFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityVariantFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityVariantFix#EntityVariantFix(Schema,String,TypeReference,String,String,IntFunction<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityVariantFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityVariantFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: fieldName, idConversions.
Parameters
Schema schemaString stringTypeReference typeReferenceString string2String string3IntFunction<String> intFunction
ตัวอย่างใช้งาน
Schema schema = ...;
TypeReference typeReference = ...;
IntFunction<String> intFunction = ...;
EntityVariantFix instance = new EntityVariantFix(schema, "value", typeReference, "value", "value", intFunction);
net.minecraft.util.datafix.fixes.EntityVariantFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityVariantFix.java:31 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityVariantFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), updateAndRename(), orElse(), asNumber(), map(), createString(), apply().
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
EntityWolfColorFix
- Full name:
net.minecraft.util.datafix.fixes.EntityWolfColorFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityWolfColorFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityWolfColorFix#EntityWolfColorFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityWolfColorFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityWolfColorFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityWolfColorFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityWolfColorFix.java:17 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityWolfColorFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityWolfColorFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityWolfColorFix.java:13 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityWolfColorFix
ทำงานยังไง
เรียกต่อ: update(), createByte(), asInt(). คืนค่า: dynamic.update("CollarColor", dynamicx -> dynamicx.createByte((byte)(15 - dynamicx.asInt(0)))).
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityWolfColorFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
EntityZombieSplitFix
- Full name:
net.minecraft.util.datafix.fixes.EntityZombieSplitFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityZombieSplitFix.java - Type:
class - Modifiers:
public - Extends:
EntityRenameFix
net.minecraft.util.datafix.fixes.EntityZombieSplitFix#EntityZombieSplitFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityZombieSplitFix.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityZombieSplitFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityZombieSplitFix#fix(String,Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityZombieSplitFix.java:20 - Modifiers:
protected - Return:
Pair<String, Typed<?>>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityZombieSplitFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; แยกกรณีด้วย switch. เรียกต่อ: equals(), of(), getOptional(), remainderFinder(), orElseThrow(), get(), asInt(), changeSchemaToZombieVillager(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String stringTyped<?> typed
ตัวอย่างใช้งาน
Typed<?> typed = ...;
@Override
protected Pair<String, Typed<?>> fix(String string, Typed<?> typed) {
return super.fix(string, typed);
}
EntityZombieVillagerTypeFix
- Full name:
net.minecraft.util.datafix.fixes.EntityZombieVillagerTypeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityZombieVillagerTypeFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.EntityZombieVillagerTypeFix#EntityZombieVillagerTypeFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityZombieVillagerTypeFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityZombieVillagerTypeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
EntityZombieVillagerTypeFix instance = new EntityZombieVillagerTypeFix(schema, true);
net.minecraft.util.datafix.fixes.EntityZombieVillagerTypeFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityZombieVillagerTypeFix.java:37 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ EntityZombieVillagerTypeFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EntityZombieVillagerTypeFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityZombieVillagerTypeFix.java:16 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ EntityZombieVillagerTypeFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), asBoolean(), result(), isEmpty(), getVillagerProfession(), asInt(), create(), nextInt(). คืนค่า: dynamic.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
EntityZombieVillagerTypeFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
EntityZombifiedPiglinRenameFix
- Full name:
net.minecraft.util.datafix.fixes.EntityZombifiedPiglinRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EntityZombifiedPiglinRenameFix.java - Type:
class - Modifiers:
public - Extends:
SimplestEntityRenameFix
net.minecraft.util.datafix.fixes.EntityZombifiedPiglinRenameFix#EntityZombifiedPiglinRenameFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityZombifiedPiglinRenameFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityZombifiedPiglinRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
EntityZombifiedPiglinRenameFix instance = new EntityZombifiedPiglinRenameFix(schema);
net.minecraft.util.datafix.fixes.EntityZombifiedPiglinRenameFix#rename(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EntityZombifiedPiglinRenameFix.java:17 - Modifiers:
protected - Return:
String
คืออะไร
ดำเนินการ rename ตาม implementation ของ EntityZombifiedPiglinRenameFix
ทำงานยังไง
เรียกต่อ: equals(). คืนค่า: Objects.equals("minecraft:zombie_pigman", string) ? "minecraft:zombified_piglin" : string.
Parameters
String string
ตัวอย่างใช้งาน
EquippableAssetRenameFix
- Full name:
net.minecraft.util.datafix.fixes.EquippableAssetRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/EquippableAssetRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.EquippableAssetRenameFix#EquippableAssetRenameFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EquippableAssetRenameFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EquippableAssetRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.EquippableAssetRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/EquippableAssetRenameFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder(), renameField().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FeatureFlagRemoveFix
- Full name:
net.minecraft.util.datafix.fixes.FeatureFlagRemoveFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/FeatureFlagRemoveFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.FeatureFlagRemoveFix#FeatureFlagRemoveFix(Schema,String,Set<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FeatureFlagRemoveFix.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FeatureFlagRemoveFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, flagsToRemove.
Parameters
Schema schemaString stringSet<String> set
ตัวอย่างใช้งาน
Schema schema = ...;
Set<String> set = ...;
FeatureFlagRemoveFix instance = new FeatureFlagRemoveFix(schema, "value", set);
net.minecraft.util.datafix.fixes.FeatureFlagRemoveFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FeatureFlagRemoveFix.java:25 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(). คืนค่า: this.fixTypeEverywhereTyped(this.name, this.getInputSchema().getType(References.LEVEL), typed -> typed.update(DSL.remainderFinder(), this::fixTag)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FilteredBooksFix
- Full name:
net.minecraft.util.datafix.fixes.FilteredBooksFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/FilteredBooksFix.java - Type:
class - Modifiers:
public - Extends:
ItemStackTagFix
net.minecraft.util.datafix.fixes.FilteredBooksFix#FilteredBooksFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FilteredBooksFix.java:7 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FilteredBooksFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: equals().
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.FilteredBooksFix#fixItemStackTag(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FilteredBooksFix.java:11 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixItemStackTag ตาม implementation ของ FilteredBooksFix
ทำงานยังไง
เรียกต่อ: remove(). คืนค่า: dynamic.remove("filtered_title").remove("filtered_pages").
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fixItemStackTag(Dynamic<T> dynamic) {
return super.fixItemStackTag(dynamic);
}
FilteredSignsFix
- Full name:
net.minecraft.util.datafix.fixes.FilteredSignsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/FilteredSignsFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.FilteredSignsFix#FilteredSignsFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FilteredSignsFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FilteredSignsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.FilteredSignsFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FilteredSignsFix.java:12 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ FilteredSignsFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), remove(). คืนค่า: typed.update(DSL.remainderFinder(), dynamic -> dynamic.remove("FilteredText1").remove("FilteredText2").remove("FilteredText3").remove("FilteredText4")).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
FireResistantToDamageResistantComponentFix
- Full name:
net.minecraft.util.datafix.fixes.FireResistantToDamageResistantComponentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/FireResistantToDamageResistantComponentFix.java - Type:
class - Modifiers:
public - Extends:
DataComponentRemainderFix
net.minecraft.util.datafix.fixes.FireResistantToDamageResistantComponentFix#FireResistantToDamageResistantComponentFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FireResistantToDamageResistantComponentFix.java:7 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FireResistantToDamageResistantComponentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
FireResistantToDamageResistantComponentFix instance = new FireResistantToDamageResistantComponentFix(schema);
net.minecraft.util.datafix.fixes.FireResistantToDamageResistantComponentFix#fixComponent(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FireResistantToDamageResistantComponentFix.java:11 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixComponent ตาม implementation ของ FireResistantToDamageResistantComponentFix
ทำงานยังไง
เรียกต่อ: emptyMap(), set(), createString(). คืนค่า: dynamic.emptyMap().set("types", dynamic.createString("#minecraft:is_fire")).
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fixComponent(Dynamic<T> dynamic) {
return super.fixComponent(dynamic);
}
FixProjectileStoredItem
- Full name:
net.minecraft.util.datafix.fixes.FixProjectileStoredItem - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/FixProjectileStoredItem.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.FixProjectileStoredItem#FixProjectileStoredItem(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FixProjectileStoredItem.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FixProjectileStoredItem ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.FixProjectileStoredItem#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FixProjectileStoredItem.java:23 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), getOutputSchema(), fixTypeEverywhereTyped(), chainAllFilters(), fixChoice().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FoodToConsumableFix
- Full name:
net.minecraft.util.datafix.fixes.FoodToConsumableFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/FoodToConsumableFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.FoodToConsumableFix#FoodToConsumableFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FoodToConsumableFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FoodToConsumableFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.FoodToConsumableFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FoodToConsumableFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: writeFixAndRead(), getInputSchema(), getType(), getOutputSchema(), get(), result(), isPresent(), asFloat(). คืนค่า: dynamic.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ForcePoiRebuild
- Full name:
net.minecraft.util.datafix.fixes.ForcePoiRebuild - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ForcePoiRebuild.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ForcePoiRebuild#ForcePoiRebuild(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ForcePoiRebuild.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ForcePoiRebuild ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ForcePoiRebuild#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ForcePoiRebuild.java:17 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: named(), typeName(), remainderType(), equals(), getInputSchema(), getType(), fixTypeEverywhere(), mapSecond(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.fixTypeEverywhere("POI rebuild", type, dynamicOps -> pair -> pair.mapSecond(ForcePoiRebuild::cap)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FurnaceRecipeFix
- Full name:
net.minecraft.util.datafix.fixes.FurnaceRecipeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/FurnaceRecipeFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.FurnaceRecipeFix#FurnaceRecipeFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FurnaceRecipeFix.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FurnaceRecipeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.FurnaceRecipeFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/FurnaceRecipeFix.java:23 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: cap(), getOutputSchema(), getTypeRaw(). คืนค่า: this.cap(this.getOutputSchema().getTypeRaw(References.RECIPE)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
GoatHornIdFix
- Full name:
net.minecraft.util.datafix.fixes.GoatHornIdFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/GoatHornIdFix.java - Type:
class - Modifiers:
public - Extends:
ItemStackTagFix
net.minecraft.util.datafix.fixes.GoatHornIdFix#fixItemStackTag(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/GoatHornIdFix.java:22 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixItemStackTag ตาม implementation ของ GoatHornIdFix
ทำงานยังไง
เรียกต่อ: get(), asInt(), remove(), set(), createString(). คืนค่า: dynamic.remove("SoundVariant").set("instrument", dynamic.createString(string)).
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fixItemStackTag(Dynamic<T> dynamic) {
return super.fixItemStackTag(dynamic);
}
net.minecraft.util.datafix.fixes.GoatHornIdFix#GoatHornIdFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/GoatHornIdFix.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GoatHornIdFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: equals().
Parameters
Schema schema
ตัวอย่างใช้งาน
GossipUUIDFix
- Full name:
net.minecraft.util.datafix.fixes.GossipUUIDFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/GossipUUIDFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.GossipUUIDFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/GossipUUIDFix.java:13 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ GossipUUIDFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), orElse(), asStreamOpt(), result(), map(), replaceUUIDLeastMost().
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.GossipUUIDFix#GossipUUIDFix(Schema,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/GossipUUIDFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ GossipUUIDFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป.
Parameters
Schema schemaString string
ตัวอย่างใช้งาน
HeightmapRenamingFix
- Full name:
net.minecraft.util.datafix.fixes.HeightmapRenamingFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/HeightmapRenamingFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.HeightmapRenamingFix#HeightmapRenamingFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/HeightmapRenamingFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HeightmapRenamingFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.HeightmapRenamingFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/HeightmapRenamingFix.java:17 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
HorseBodyArmorItemFix
- Full name:
net.minecraft.util.datafix.fixes.HorseBodyArmorItemFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/HorseBodyArmorItemFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityWriteReadFix
net.minecraft.util.datafix.fixes.HorseBodyArmorItemFix#fix(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/HorseBodyArmorItemFix.java:18 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fix ตาม implementation ของ HorseBodyArmorItemFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), result(), isPresent(), remove(), update(), createList(), mapWithIndex(), asStream(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fix(Dynamic<T> dynamic) {
return super.fix(dynamic);
}
net.minecraft.util.datafix.fixes.HorseBodyArmorItemFix#HorseBodyArmorItemFix(Schema,String,String,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/HorseBodyArmorItemFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HorseBodyArmorItemFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการวนลูป. แก้ state: previousBodyArmorTag, clearArmorItems.
Parameters
Schema schemaString stringString string2boolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
HorseBodyArmorItemFix instance = new HorseBodyArmorItemFix(schema, "value", "value", true);
IglooMetadataRemovalFix
- Full name:
net.minecraft.util.datafix.fixes.IglooMetadataRemovalFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/IglooMetadataRemovalFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.IglooMetadataRemovalFix#IglooMetadataRemovalFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/IglooMetadataRemovalFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ IglooMetadataRemovalFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.IglooMetadataRemovalFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/IglooMetadataRemovalFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder(). คืนค่า: this.fixTypeEverywhereTyped("IglooMetadataRemovalFix", type, typed -> typed.update(DSL.remainderFinder(), IglooMetadataRemovalFix::fixTag)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
InvalidBlockEntityLockFix
- Full name:
net.minecraft.util.datafix.fixes.InvalidBlockEntityLockFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/InvalidBlockEntityLockFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.InvalidBlockEntityLockFix#InvalidBlockEntityLockFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/InvalidBlockEntityLockFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ InvalidBlockEntityLockFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.InvalidBlockEntityLockFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/InvalidBlockEntityLockFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), get(), result(), isEmpty(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
InvalidLockComponentFix
- Full name:
net.minecraft.util.datafix.fixes.InvalidLockComponentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/InvalidLockComponentFix.java - Type:
class - Modifiers:
public - Extends:
DataComponentRemainderFix
net.minecraft.util.datafix.fixes.InvalidLockComponentFix#fixComponent(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/InvalidLockComponentFix.java:17 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixComponent ตาม implementation ของ InvalidLockComponentFix
ทำงานยังไง
เรียกต่อ: fixLock(). คืนค่า: fixLock(dynamic).
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fixComponent(Dynamic<T> dynamic) {
return super.fixComponent(dynamic);
}
net.minecraft.util.datafix.fixes.InvalidLockComponentFix#fixLock(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/InvalidLockComponentFix.java:23 - Modifiers:
public static - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixLock ตาม implementation ของ InvalidLockComponentFix
ทำงานยังไง
เรียกต่อ: isBrokenLock(). คืนค่า: isBrokenLock(dynamic) ? null : dynamic.
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.InvalidLockComponentFix#InvalidLockComponentFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/InvalidLockComponentFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ InvalidLockComponentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
ItemBannerColorFix
- Full name:
net.minecraft.util.datafix.fixes.ItemBannerColorFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemBannerColorFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemBannerColorFix#ItemBannerColorFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemBannerColorFix.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemBannerColorFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemBannerColorFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemBannerColorFix.java:23 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), type(). มีจุด return อย่างน้อย 5 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemCustomNameToComponentFix
- Full name:
net.minecraft.util.datafix.fixes.ItemCustomNameToComponentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemCustomNameToComponentFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemCustomNameToComponentFix#ItemCustomNameToComponentFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemCustomNameToComponentFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemCustomNameToComponentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
ItemCustomNameToComponentFix instance = new ItemCustomNameToComponentFix(schema, true);
net.minecraft.util.datafix.fixes.ItemCustomNameToComponentFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemCustomNameToComponentFix.java:33 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemIdFix
- Full name:
net.minecraft.util.datafix.fixes.ItemIdFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemIdFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemIdFix#getItem(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemIdFix.java:340 - Modifiers:
public static - Return:
String
คืออะไร
อ่านค่า Item
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: ITEM_NAMES.get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemIdFix#ItemIdFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemIdFix.java:336 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemIdFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemIdFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemIdFix.java:344 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: or(), intType(), named(), typeName(), namespacedString(), fieldFinder(), fixTypeEverywhereTyped(), getInputSchema().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemLoreFix
- Full name:
net.minecraft.util.datafix.fixes.ItemLoreFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemLoreFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemLoreFix#ItemLoreFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemLoreFix.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemLoreFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemLoreFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemLoreFix.java:19 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder(), orElse().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemPotionFix
- Full name:
net.minecraft.util.datafix.fixes.ItemPotionFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemPotionFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemPotionFix#ItemPotionFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemPotionFix.java:151 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemPotionFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemPotionFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemPotionFix.java:155 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), fixTypeEverywhereTyped(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemRemoveBlockEntityTagFix
- Full name:
net.minecraft.util.datafix.fixes.ItemRemoveBlockEntityTagFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemRemoveBlockEntityTagFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemRemoveBlockEntityTagFix#ItemRemoveBlockEntityTagFix(Schema,boolean,Set<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemRemoveBlockEntityTagFix.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemRemoveBlockEntityTagFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: items.
Parameters
Schema schemaboolean blSet<String> set
ตัวอย่างใช้งาน
Schema schema = ...;
Set<String> set = ...;
ItemRemoveBlockEntityTagFix instance = new ItemRemoveBlockEntityTagFix(schema, true, set);
net.minecraft.util.datafix.fixes.ItemRemoveBlockEntityTagFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemRemoveBlockEntityTagFix.java:24 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), type(). มีจุด return อย่างน้อย 4 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemRenameFix
- Full name:
net.minecraft.util.datafix.fixes.ItemRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemRenameFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemRenameFix#create(Schema,String,Function<String, String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemRenameFix.java:33 - Modifiers:
public static - Return:
DataFix
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: fixItem(), apply(). สร้างออบเจ็กต์: ItemRenameFix. คืนค่า: new ItemRenameFix(schema, string) { @Override protected String fixItem(String string) { return function.apply(string).
Parameters
Schema schemaString stringFunction<String, String> function
ตัวอย่างใช้งาน
Schema schema = ...;
Function<String, String> function = ...;
DataFix result = ItemRenameFix.create(schema, "value", function);
net.minecraft.util.datafix.fixes.ItemRenameFix#fixItem(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemRenameFix.java:31 - Modifiers:
protected abstract - Return:
String
คืออะไร
ดำเนินการ fixItem ตาม implementation ของ ItemRenameFix
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemRenameFix#ItemRenameFix(Schema,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemRenameFix.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name.
Parameters
Schema schemaString string
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemRenameFix.java:21 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: named(), typeName(), namespacedString(), equals(), getInputSchema(), getType(), fixTypeEverywhere(), mapSecond(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.fixTypeEverywhere(this.name, type, dynamicOps -> pair -> pair.mapSecond(this::fixItem)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemShulkerBoxColorFix
- Full name:
net.minecraft.util.datafix.fixes.ItemShulkerBoxColorFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemShulkerBoxColorFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemShulkerBoxColorFix#ItemShulkerBoxColorFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemShulkerBoxColorFix.java:36 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemShulkerBoxColorFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemShulkerBoxColorFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemShulkerBoxColorFix.java:40 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), type(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemSpawnEggFix
- Full name:
net.minecraft.util.datafix.fixes.ItemSpawnEggFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemSpawnEggFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemSpawnEggFix#ItemSpawnEggFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemSpawnEggFix.java:87 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemSpawnEggFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemSpawnEggFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemSpawnEggFix.java:91 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), string(), findField(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemStackComponentizationFix
- Full name:
net.minecraft.util.datafix.fixes.ItemStackComponentizationFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemStackComponentizationFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemStackComponentizationFix#fixProfile(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackComponentizationFix.java:627 - Modifiers:
public static - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixProfile ตาม implementation ของ ItemStackComponentizationFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: asString(), result(), isPresent(), isValidPlayerName(), get(), emptyMap(), set(), createString(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemStackComponentizationFix#ItemStackComponentizationFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackComponentizationFix.java:101 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemStackComponentizationFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
ItemStackComponentizationFix instance = new ItemStackComponentizationFix(schema);
net.minecraft.util.datafix.fixes.ItemStackComponentizationFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackComponentizationFix.java:684 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: writeFixAndRead(), getInputSchema(), getType(), getOutputSchema(), read(), map(), fixItemStack(), write(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemStackCustomNameToOverrideComponentFix
- Full name:
net.minecraft.util.datafix.fixes.ItemStackCustomNameToOverrideComponentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemStackCustomNameToOverrideComponentFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemStackCustomNameToOverrideComponentFix#ItemStackCustomNameToOverrideComponentFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackCustomNameToOverrideComponentFix.java:33 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemStackCustomNameToOverrideComponentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
ItemStackCustomNameToOverrideComponentFix instance = new ItemStackCustomNameToOverrideComponentFix(schema);
net.minecraft.util.datafix.fixes.ItemStackCustomNameToOverrideComponentFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackCustomNameToOverrideComponentFix.java:37 - Modifiers:
public final - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), fixTypeEverywhereTyped(). คืนค่า: typed.updateTyped(opticFinder2, typedx -> typedx.update(DSL.remainderFinder(), ItemStackCustomNameToOverrideComponentFix::fixBanner)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemStackCustomNameToOverrideComponentFix instance = ...;
TypeRewriteRule result = instance.makeRule();
ItemStackEnchantmentNamesFix
- Full name:
net.minecraft.util.datafix.fixes.ItemStackEnchantmentNamesFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemStackEnchantmentNamesFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemStackEnchantmentNamesFix#ItemStackEnchantmentNamesFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackEnchantmentNamesFix.java:53 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemStackEnchantmentNamesFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
ItemStackEnchantmentNamesFix instance = new ItemStackEnchantmentNamesFix(schema, true);
net.minecraft.util.datafix.fixes.ItemStackEnchantmentNamesFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackEnchantmentNamesFix.java:57 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemStackMapIdFix
- Full name:
net.minecraft.util.datafix.fixes.ItemStackMapIdFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemStackMapIdFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemStackMapIdFix#ItemStackMapIdFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackMapIdFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemStackMapIdFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemStackMapIdFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackMapIdFix.java:21 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), fixTypeEverywhereTyped(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemStackSpawnEggFix
- Full name:
net.minecraft.util.datafix.fixes.ItemStackSpawnEggFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemStackSpawnEggFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemStackSpawnEggFix#ItemStackSpawnEggFix(Schema,boolean,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackSpawnEggFix.java:72 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemStackSpawnEggFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: itemType.
Parameters
Schema schemaboolean blString string
ตัวอย่างใช้งาน
Schema schema = ...;
ItemStackSpawnEggFix instance = new ItemStackSpawnEggFix(schema, true, "value");
net.minecraft.util.datafix.fixes.ItemStackSpawnEggFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackSpawnEggFix.java:77 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), type(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemStackTagFix
- Full name:
net.minecraft.util.datafix.fixes.ItemStackTagFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemStackTagFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemStackTagFix#createFixer(Type<?>,Predicate<String>,UnaryOperator<Dynamic<?>>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackTagFix.java:33 - Modifiers:
public static - Return:
UnaryOperator<Typed<?>>
คืออะไร
สร้าง Fixer
ทำงานยังไง
เรียกต่อ: fieldFinder(), named(), typeName(), namespacedString(), findField(), getOptional(), isPresent(), test(). คืนค่า: typed -> { Optional<Pair<String, String>> optional = typed.getOptional(opticFinder).
Parameters
Type<?> typePredicate<String> predicateUnaryOperator<Dynamic<?>> unaryOperator
ตัวอย่างใช้งาน
Type<?> type = ...;
Predicate<String> predicate = ...;
UnaryOperator<Dynamic<?>> unaryOperator = ...;
UnaryOperator<Typed<?>> result = ItemStackTagFix.createFixer(type, predicate, unaryOperator);
net.minecraft.util.datafix.fixes.ItemStackTagFix#fixItemStackTag(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackTagFix.java:44 - Modifiers:
protected abstract - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixItemStackTag ตาม implementation ของ ItemStackTagFix
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fixItemStackTag(Dynamic<T> dynamic) {
return super.fixItemStackTag(dynamic);
}
net.minecraft.util.datafix.fixes.ItemStackTagFix#ItemStackTagFix(Schema,String,Predicate<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackTagFix.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemStackTagFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, idFilter.
Parameters
Schema schemaString stringPredicate<String> predicate
ตัวอย่างใช้งาน
Schema schema = ...;
Predicate<String> predicate = ...;
ItemStackTagFix instance = new ItemStackTagFix(schema, "value", predicate);
net.minecraft.util.datafix.fixes.ItemStackTagFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackTagFix.java:27 - Modifiers:
public final - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), fixTypeEverywhereTyped(), createFixer(). คืนค่า: this.fixTypeEverywhereTyped(this.name, type, createFixer(type, this.idFilter, this::fixItemStackTag)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemStackTheFlatteningFix
- Full name:
net.minecraft.util.datafix.fixes.ItemStackTheFlatteningFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemStackTheFlatteningFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemStackTheFlatteningFix#ItemStackTheFlatteningFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackTheFlatteningFix.java:401 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemStackTheFlatteningFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
ItemStackTheFlatteningFix instance = new ItemStackTheFlatteningFix(schema, true);
net.minecraft.util.datafix.fixes.ItemStackTheFlatteningFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackTheFlatteningFix.java:405 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), fixTypeEverywhereTyped(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemStackTheFlatteningFix#updateItem(String,int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackTheFlatteningFix.java:435 - Modifiers:
public static - Return:
String
คืออะไร
อัปเดต Item
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), get(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String stringint i
ตัวอย่างใช้งาน
ItemStackUUIDFix
- Full name:
net.minecraft.util.datafix.fixes.ItemStackUUIDFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemStackUUIDFix.java - Type:
class - Modifiers:
public - Extends:
AbstractUUIDFix
net.minecraft.util.datafix.fixes.ItemStackUUIDFix#ItemStackUUIDFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackUUIDFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemStackUUIDFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemStackUUIDFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemStackUUIDFix.java:16 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fieldFinder(), named(), typeName(), namespacedString(), fixTypeEverywhereTyped(), getInputSchema(), getType(), findField(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemWaterPotionFix
- Full name:
net.minecraft.util.datafix.fixes.ItemWaterPotionFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemWaterPotionFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemWaterPotionFix#ItemWaterPotionFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemWaterPotionFix.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemWaterPotionFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ItemWaterPotionFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemWaterPotionFix.java:20 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fieldFinder(), named(), typeName(), namespacedString(), findField(), fixTypeEverywhereTyped(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ItemWrittenBookPagesStrictJsonFix
- Full name:
net.minecraft.util.datafix.fixes.ItemWrittenBookPagesStrictJsonFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ItemWrittenBookPagesStrictJsonFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ItemWrittenBookPagesStrictJsonFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemWrittenBookPagesStrictJsonFix.java:18 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ ItemWrittenBookPagesStrictJsonFix
ทำงานยังไง
เรียกต่อ: update(), orElse(), asStreamOpt(), map(), result(), emptyList().
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
ItemWrittenBookPagesStrictJsonFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
net.minecraft.util.datafix.fixes.ItemWrittenBookPagesStrictJsonFix#ItemWrittenBookPagesStrictJsonFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemWrittenBookPagesStrictJsonFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ItemWrittenBookPagesStrictJsonFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
ItemWrittenBookPagesStrictJsonFix instance = new ItemWrittenBookPagesStrictJsonFix(schema, true);
net.minecraft.util.datafix.fixes.ItemWrittenBookPagesStrictJsonFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ItemWrittenBookPagesStrictJsonFix.java:27 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
JigsawPropertiesFix
- Full name:
net.minecraft.util.datafix.fixes.JigsawPropertiesFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/JigsawPropertiesFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.JigsawPropertiesFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/JigsawPropertiesFix.java:23 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ JigsawPropertiesFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), JigsawPropertiesFix::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.JigsawPropertiesFix#JigsawPropertiesFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/JigsawPropertiesFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ JigsawPropertiesFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
JigsawRotationFix
- Full name:
net.minecraft.util.datafix.fixes.JigsawRotationFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/JigsawRotationFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.JigsawRotationFix#JigsawRotationFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/JigsawRotationFix.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ JigsawRotationFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.JigsawRotationFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/JigsawRotationFix.java:34 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
JukeboxTicksSinceSongStartedFix
- Full name:
net.minecraft.util.datafix.fixes.JukeboxTicksSinceSongStartedFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/JukeboxTicksSinceSongStartedFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.JukeboxTicksSinceSongStartedFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/JukeboxTicksSinceSongStartedFix.java:19 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ JukeboxTicksSinceSongStartedFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.JukeboxTicksSinceSongStartedFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/JukeboxTicksSinceSongStartedFix.java:13 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ JukeboxTicksSinceSongStartedFix
ทำงานยังไง
เรียกต่อ: get(), asLong(), remove(), set(), createLong(). คืนค่า: l > 0L ? dynamic2.set("ticks_since_song_started", dynamic.createLong(l)) : dynamic2.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
JukeboxTicksSinceSongStartedFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
net.minecraft.util.datafix.fixes.JukeboxTicksSinceSongStartedFix#JukeboxTicksSinceSongStartedFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/JukeboxTicksSinceSongStartedFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ JukeboxTicksSinceSongStartedFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
JukeboxTicksSinceSongStartedFix instance = new JukeboxTicksSinceSongStartedFix(schema);
LeavesFix
- Full name:
net.minecraft.util.datafix.fixes.LeavesFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LeavesFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.LeavesFix#getIndex(int,int,int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:183 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Index
ทำงานยังไง
คืนค่า: j << 8 | k << 4 | i.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LeavesFix#getSideMask(boolean,boolean,boolean,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:199 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Side Mask
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. คืนค่า: i.
Parameters
boolean blboolean bl2boolean bl3boolean bl4
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LeavesFix#LeavesFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:77 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LeavesFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LeavesFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:81 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getInputSchema(), getType(), findField(), type(), getElement(), typeFinder(), fixTypeEverywhereTyped(), updateTyped(). สร้างออบเจ็กต์: IllegalStateException, Int2ObjectOpenHashMap<>, LeavesFix.LeavesSection, IntOpenHashSet. มีจุด return อย่างน้อย 5 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LeavesFix$LeavesSection
- Full name:
net.minecraft.util.datafix.fixes.LeavesFix$LeavesSection - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LeavesFix.java - Type:
class - Modifiers:
public static final - Extends:
LeavesFix.Section
net.minecraft.util.datafix.fixes.LeavesFix$LeavesSection#isLeaf(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:278 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Leaf
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: this.leaveIds.contains(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LeavesFix$LeavesSection#isLog(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:274 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Log
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: this.logIds.contains(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LeavesFix$LeavesSection#LeavesSection(Typed<?>,Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:237 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LeavesFix.LeavesSection ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Typed<?> typedSchema schema
ตัวอย่างใช้งาน
Typed<?> typed = ...;
Schema schema = ...;
LeavesFix.LeavesSection instance = new LeavesFix.LeavesSection(typed, schema);
net.minecraft.util.datafix.fixes.LeavesFix$LeavesSection#skippable()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:241 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ skippable ตาม implementation ของ LeavesFix$LeavesSection
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: leaveIds, logIds, stateToIdMap. เรียกต่อ: size(), get(), asString(), containsKey(), equals(), add(), put(), getStateId(). สร้างออบเจ็กต์: IntOpenHashSet, Int2IntOpenHashMap. คืนค่า: this.leaveIds.isEmpty() && this.logIds.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LeavesFix$Section
- Full name:
net.minecraft.util.datafix.fixes.LeavesFix$Section - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LeavesFix.java - Type:
class - Modifiers:
public abstract static
net.minecraft.util.datafix.fixes.LeavesFix$Section#getBlock(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:357 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Block
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.storage.get(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LeavesFix$Section#getStateId(String,boolean,int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:361 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า State Id
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: LeavesFix.LEAVES.get(string) << 5 | (bl ? 16 : 0) | i.
Parameters
String stringboolean blint i
ตัวอย่างใช้งาน
@Override
protected int getStateId(String string, boolean bl, int i) {
return super.getStateId(string, bl, i);
}
net.minecraft.util.datafix.fixes.LeavesFix$Section#isSkippable()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:353 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Skippable
ทำงานยังไง
แก้ state: storage. คืนค่า: this.storage == null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LeavesFix$Section#readStorage(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:336 - Modifiers:
protected - Return:
void
คืออะไร
อ่าน Storage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: storage. เรียกต่อ: skippable(), get(), asLongStream(), toArray(), max(), ceillog2(), size(). สร้างออบเจ็กต์: PackedBitStorage.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected void readStorage(Dynamic<?> dynamic) {
super.readStorage(dynamic);
}
net.minecraft.util.datafix.fixes.LeavesFix$Section#Section(Typed<?>,Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:324 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LeavesFix.Section ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: palette, index. เรียกต่อ: equals(), getType(), getOptional(), map(), stream(), collect(), toList(), orElse(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
Typed<?> typedSchema schema
ตัวอย่างใช้งาน
Typed<?> typed = ...;
Schema schema = ...;
LeavesFix.Section instance = new LeavesFix.Section(typed, schema);
net.minecraft.util.datafix.fixes.LeavesFix$Section#skippable()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:369 - Modifiers:
protected abstract - Return:
boolean
คืออะไร
ดำเนินการ skippable ตาม implementation ของ LeavesFix$Section
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LeavesFix$Section#write(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LeavesFix.java:346 - Modifiers:
public - Return:
Typed<?>
คืออะไร
เขียน write
ทำงานยังไง
เรียกต่อ: isSkippable(), update(), remainderFinder(), set(), createLongList(), stream(), getRaw(), map().
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
LegacyDragonFightFix
- Full name:
net.minecraft.util.datafix.fixes.LegacyDragonFightFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LegacyDragonFightFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.LegacyDragonFightFix#LegacyDragonFightFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LegacyDragonFightFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LegacyDragonFightFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LegacyDragonFightFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LegacyDragonFightFix.java:20 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), get(), result(), isPresent(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelDataGeneratorOptionsFix
- Full name:
net.minecraft.util.datafix.fixes.LevelDataGeneratorOptionsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LevelDataGeneratorOptionsFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.LevelDataGeneratorOptionsFix#LevelDataGeneratorOptionsFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LevelDataGeneratorOptionsFix.java:105 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelDataGeneratorOptionsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
LevelDataGeneratorOptionsFix instance = new LevelDataGeneratorOptionsFix(schema, true);
net.minecraft.util.datafix.fixes.LevelDataGeneratorOptionsFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LevelDataGeneratorOptionsFix.java:109 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOutputSchema(), getType(), fixTypeEverywhereTyped(), getInputSchema(), writeAndReadTypedOrThrow(), get(), asString(), result(). สร้างออบเจ็กต์: Dynamic<>. มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelFlatGeneratorInfoFix
- Full name:
net.minecraft.util.datafix.fixes.LevelFlatGeneratorInfoFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LevelFlatGeneratorInfoFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.LevelFlatGeneratorInfoFix#LevelFlatGeneratorInfoFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LevelFlatGeneratorInfoFix.java:27 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelFlatGeneratorInfoFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
LevelFlatGeneratorInfoFix instance = new LevelFlatGeneratorInfoFix(schema, true);
net.minecraft.util.datafix.fixes.LevelFlatGeneratorInfoFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LevelFlatGeneratorInfoFix.java:31 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelLegacyWorldGenSettingsFix
- Full name:
net.minecraft.util.datafix.fixes.LevelLegacyWorldGenSettingsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LevelLegacyWorldGenSettingsFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.LevelLegacyWorldGenSettingsFix#LevelLegacyWorldGenSettingsFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LevelLegacyWorldGenSettingsFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelLegacyWorldGenSettingsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
LevelLegacyWorldGenSettingsFix instance = new LevelLegacyWorldGenSettingsFix(schema);
net.minecraft.util.datafix.fixes.LevelLegacyWorldGenSettingsFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LevelLegacyWorldGenSettingsFix.java:21 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), get(), orElseEmptyMap(), result(). คืนค่า: dynamic.set("WorldGenSettings", dynamic2).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelUUIDFix
- Full name:
net.minecraft.util.datafix.fixes.LevelUUIDFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LevelUUIDFix.java - Type:
class - Modifiers:
public - Extends:
AbstractUUIDFix
net.minecraft.util.datafix.fixes.LevelUUIDFix#LevelUUIDFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LevelUUIDFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelUUIDFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LevelUUIDFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LevelUUIDFix.java:17 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), updateTyped(), remainderFinder(), update(), updateCustomBossEvents(), updateDragonFight(). คืนค่า: this.updateWanderingTrader(dynamic).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LockComponentPredicateFix
- Full name:
net.minecraft.util.datafix.fixes.LockComponentPredicateFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LockComponentPredicateFix.java - Type:
class - Modifiers:
public - Extends:
DataComponentRemainderFix
net.minecraft.util.datafix.fixes.LockComponentPredicateFix#fixComponent(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LockComponentPredicateFix.java:17 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixComponent ตาม implementation ของ LockComponentPredicateFix
ทำงานยังไง
เรียกต่อ: fixLock(). คืนค่า: fixLock(dynamic).
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fixComponent(Dynamic<T> dynamic) {
return super.fixComponent(dynamic);
}
net.minecraft.util.datafix.fixes.LockComponentPredicateFix#fixLock(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LockComponentPredicateFix.java:23 - Modifiers:
public static - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixLock ตาม implementation ของ LockComponentPredicateFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: asString(), result(), isEmpty(), get(), createString(), escape(), emptyMap(), set(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.LockComponentPredicateFix#LockComponentPredicateFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LockComponentPredicateFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LockComponentPredicateFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
LodestoneCompassComponentFix
- Full name:
net.minecraft.util.datafix.fixes.LodestoneCompassComponentFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/LodestoneCompassComponentFix.java - Type:
class - Modifiers:
public - Extends:
DataComponentRemainderFix
net.minecraft.util.datafix.fixes.LodestoneCompassComponentFix#fixComponent(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LodestoneCompassComponentFix.java:12 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixComponent ตาม implementation ของ LodestoneCompassComponentFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), result(), remove(), isPresent(), set(), emptyMap(). คืนค่า: dynamic.
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fixComponent(Dynamic<T> dynamic) {
return super.fixComponent(dynamic);
}
net.minecraft.util.datafix.fixes.LodestoneCompassComponentFix#LodestoneCompassComponentFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/LodestoneCompassComponentFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LodestoneCompassComponentFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
LodestoneCompassComponentFix instance = new LodestoneCompassComponentFix(schema);
MapBannerBlockPosFormatFix
- Full name:
net.minecraft.util.datafix.fixes.MapBannerBlockPosFormatFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/MapBannerBlockPosFormatFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.MapBannerBlockPosFormatFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MapBannerBlockPosFormatFix.java:21 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.MapBannerBlockPosFormatFix#MapBannerBlockPosFormatFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MapBannerBlockPosFormatFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MapBannerBlockPosFormatFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
MapIdFix
- Full name:
net.minecraft.util.datafix.fixes.MapIdFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/MapIdFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.MapIdFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MapIdFix.java:14 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), createMap(), of(), createString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.MapIdFix#MapIdFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MapIdFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MapIdFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
MemoryExpiryDataFix
- Full name:
net.minecraft.util.datafix.fixes.MemoryExpiryDataFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/MemoryExpiryDataFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.MemoryExpiryDataFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MemoryExpiryDataFix.java:15 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ MemoryExpiryDataFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.MemoryExpiryDataFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MemoryExpiryDataFix.java:20 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ MemoryExpiryDataFix
ทำงานยังไง
เรียกต่อ: update(). คืนค่า: dynamic.update("Brain", this::updateBrain).
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
MemoryExpiryDataFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
net.minecraft.util.datafix.fixes.MemoryExpiryDataFix#MemoryExpiryDataFix(Schema,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MemoryExpiryDataFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MemoryExpiryDataFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: fix().
Parameters
Schema schemaString string
ตัวอย่างใช้งาน
MissingDimensionFix
- Full name:
net.minecraft.util.datafix.fixes.MissingDimensionFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/MissingDimensionFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.MissingDimensionFix#fields(String,Type<A>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MissingDimensionFix.java:25 - Modifiers:
protected static - Return:
Type<Pair<A, Dynamic<?>>>
คืออะไร
ดำเนินการ fields ตาม implementation ของ MissingDimensionFix
ทำงานยังไง
เรียกต่อ: and(), field(), remainderType(). คืนค่า: DSL.and(DSL.field(string, type), DSL.remainderType()).
Parameters
String stringType<A> type
ตัวอย่างใช้งาน
Type<A> type = ...;
@Override
protected Type<Pair<A, Dynamic<?>>> fields(String string, Type<A> type) {
return super.fields(string, type);
}
net.minecraft.util.datafix.fixes.MissingDimensionFix#flatType(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MissingDimensionFix.java:98 - Modifiers:
protected static - Return:
Type<? extends Pair<? extends Either<? extends Pair<? extends Either<?, Unit>, ? extends Pair<? extends Either<? extends List<? extends Pair<? extends Either<?, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>>
คืออะไร
ดำเนินการ flatType ตาม implementation ของ MissingDimensionFix
ทำงานยังไง
เรียกต่อ: optionalFields(), getType(), list().
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
@Override
protected Type<? extends Pair<? extends Either<? extends Pair<? extends Either<?, Unit>, ? extends Pair<? extends Either<? extends List<? extends Pair<? extends Either<?, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>> flatType(Schema schema) {
return super.flatType(schema);
}
net.minecraft.util.datafix.fixes.MissingDimensionFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MissingDimensionFix.java:39 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), taggedChoiceType(), string(), of(), remainderType(), flatType(), optionalFields(), fields(). สร้างออบเจ็กต์: FieldFinder<>, IllegalStateException. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.MissingDimensionFix#MissingDimensionFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MissingDimensionFix.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MissingDimensionFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.MissingDimensionFix#optionalFields(String,Type<A1>,String,Type<A2>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MissingDimensionFix.java:33 - Modifiers:
protected static - Return:
Type<Pair<Either<A1, Unit>, Pair<Either<A2, Unit>, Dynamic<?>>>>
คืออะไร
ดำเนินการ optionalFields ตาม implementation ของ MissingDimensionFix
ทำงานยังไง
เรียกต่อ: and(), optional(), field(), remainderType(). คืนค่า: DSL.and(DSL.optional(DSL.field(string, type)), DSL.optional(DSL.field(string2, type2)), DSL.remainderType()).
Parameters
String stringType<A1> typeString string2Type<A2> type2
ตัวอย่างใช้งาน
Type<A1> type = ...;
Type<A2> type2 = ...;
@Override
protected Type<Pair<Either<A1, Unit>, Pair<Either<A2, Unit>, Dynamic<?>>>> optionalFields(String string, Type<A1> type, String string2, Type<A2> type2) {
return super.optionalFields(string, type, string2, type2);
}
net.minecraft.util.datafix.fixes.MissingDimensionFix#optionalFields(String,Type<A>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MissingDimensionFix.java:29 - Modifiers:
protected static - Return:
Type<Pair<Either<A, Unit>, Dynamic<?>>>
คืออะไร
ดำเนินการ optionalFields ตาม implementation ของ MissingDimensionFix
ทำงานยังไง
เรียกต่อ: and(), optional(), field(), remainderType(). คืนค่า: DSL.and(DSL.optional(DSL.field(string, type)), DSL.remainderType()).
Parameters
String stringType<A> type
ตัวอย่างใช้งาน
Type<A> type = ...;
@Override
protected Type<Pair<Either<A, Unit>, Dynamic<?>>> optionalFields(String string, Type<A> type) {
return super.optionalFields(string, type);
}
MobEffectIdFix
- Full name:
net.minecraft.util.datafix.fixes.MobEffectIdFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/MobEffectIdFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.MobEffectIdFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MobEffectIdFix.java:197 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: seq(), blockEntityFixer(), entityFixer(), playerFixer(), itemStackFixer(). คืนค่า: TypeRewriteRule.seq(this.blockEntityFixer(), this.entityFixer(), this.playerFixer(), this.itemStackFixer()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.MobEffectIdFix#MobEffectIdFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MobEffectIdFix.java:62 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MobEffectIdFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
MobSpawnerEntityIdentifiersFix
- Full name:
net.minecraft.util.datafix.fixes.MobSpawnerEntityIdentifiersFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/MobSpawnerEntityIdentifiersFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.MobSpawnerEntityIdentifiersFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MobSpawnerEntityIdentifiersFix.java:50 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getOutputSchema(), getType(), fixTypeEverywhereTyped(), getInputSchema(), get(), remainderFinder(), set(), createString(). คืนค่า: dataResult.result().isEmpty() ? typed : dataResult.result().get().getFirst().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.MobSpawnerEntityIdentifiersFix#MobSpawnerEntityIdentifiersFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/MobSpawnerEntityIdentifiersFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MobSpawnerEntityIdentifiersFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
MobSpawnerEntityIdentifiersFix instance = new MobSpawnerEntityIdentifiersFix(schema, true);
NamedEntityFix
- Full name:
net.minecraft.util.datafix.fixes.NamedEntityFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/NamedEntityFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.NamedEntityFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NamedEntityFix.java:34 - Modifiers:
protected abstract - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ NamedEntityFix
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.NamedEntityFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NamedEntityFix.java:23 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: namedChoice(), getInputSchema(), getChoiceType(), fixTypeEverywhereTyped(), getType(), getOutputSchema(), updateTyped().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.NamedEntityFix#NamedEntityFix(Schema,boolean,String,TypeReference,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NamedEntityFix.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NamedEntityFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, type, entityName.
Parameters
Schema schemaboolean blString stringTypeReference typeReferenceString string2
ตัวอย่างใช้งาน
Schema schema = ...;
TypeReference typeReference = ...;
NamedEntityFix instance = new NamedEntityFix(schema, true, "value", typeReference, "value");
NamedEntityWriteReadFix
- Full name:
net.minecraft.util.datafix.fixes.NamedEntityWriteReadFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/NamedEntityWriteReadFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.NamedEntityWriteReadFix#fix(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NamedEntityWriteReadFix.java:48 - Modifiers:
protected abstract - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fix ตาม implementation ของ NamedEntityWriteReadFix
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fix(Dynamic<T> dynamic) {
return super.fix(dynamic);
}
net.minecraft.util.datafix.fixes.NamedEntityWriteReadFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NamedEntityWriteReadFix.java:27 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), getChoiceType(), getOutputSchema(), namedChoice(), patchSubType(), fix(). คืนค่า: this.fix(type, type3, opticFinder, type4, type5).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.NamedEntityWriteReadFix#NamedEntityWriteReadFix(Schema,boolean,String,TypeReference,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NamedEntityWriteReadFix.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NamedEntityWriteReadFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, type, entityName.
Parameters
Schema schemaboolean blString stringTypeReference typeReferenceString string2
ตัวอย่างใช้งาน
Schema schema = ...;
TypeReference typeReference = ...;
NamedEntityWriteReadFix instance = new NamedEntityWriteReadFix(schema, true, "value", typeReference, "value");
NamespacedTypeRenameFix
- Full name:
net.minecraft.util.datafix.fixes.NamespacedTypeRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/NamespacedTypeRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.NamespacedTypeRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NamespacedTypeRenameFix.java:26 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: named(), typeName(), namespacedString(), equals(), getInputSchema(), getType(), fixTypeEverywhere(), mapSecond(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.fixTypeEverywhere(this.name, type, dynamicOps -> pair -> pair.mapSecond(this.renamer)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.NamespacedTypeRenameFix#NamespacedTypeRenameFix(Schema,String,TypeReference,UnaryOperator<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NamespacedTypeRenameFix.java:19 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NamespacedTypeRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, type, renamer.
Parameters
Schema schemaString stringTypeReference typeReferenceUnaryOperator<String> unaryOperator
ตัวอย่างใช้งาน
Schema schema = ...;
TypeReference typeReference = ...;
UnaryOperator<String> unaryOperator = ...;
NamespacedTypeRenameFix instance = new NamespacedTypeRenameFix(schema, "value", typeReference, unaryOperator);
NewVillageFix
- Full name:
net.minecraft.util.datafix.fixes.NewVillageFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/NewVillageFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.NewVillageFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NewVillageFix.java:24 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: compoundList(), string(), getInputSchema(), getType(), finder(), cap(). คืนค่า: this.cap(compoundListType).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.NewVillageFix#NewVillageFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/NewVillageFix.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NewVillageFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
ObjectiveDisplayNameFix
- Full name:
net.minecraft.util.datafix.fixes.ObjectiveDisplayNameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ObjectiveDisplayNameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ObjectiveDisplayNameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ObjectiveDisplayNameFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ObjectiveDisplayNameFix#ObjectiveDisplayNameFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ObjectiveDisplayNameFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ObjectiveDisplayNameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
ObjectiveRenderTypeFix
- Full name:
net.minecraft.util.datafix.fixes.ObjectiveRenderTypeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ObjectiveRenderTypeFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ObjectiveRenderTypeFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ObjectiveRenderTypeFix.java:19 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder(), get(), asString(), result(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ObjectiveRenderTypeFix#ObjectiveRenderTypeFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ObjectiveRenderTypeFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ObjectiveRenderTypeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
OminousBannerBlockEntityRenameFix
- Full name:
net.minecraft.util.datafix.fixes.OminousBannerBlockEntityRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OminousBannerBlockEntityRenameFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.OminousBannerBlockEntityRenameFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OminousBannerBlockEntityRenameFix.java:14 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ OminousBannerBlockEntityRenameFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OminousBannerBlockEntityRenameFix#OminousBannerBlockEntityRenameFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OminousBannerBlockEntityRenameFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OminousBannerBlockEntityRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
OminousBannerBlockEntityRenameFix instance = new OminousBannerBlockEntityRenameFix(schema, true);
OminousBannerRarityFix
- Full name:
net.minecraft.util.datafix.fixes.OminousBannerRarityFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OminousBannerRarityFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OminousBannerRarityFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OminousBannerRarityFix.java:20 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findChoiceType(), fieldFinder(), named(), typeName(), namespacedString(), findField(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OminousBannerRarityFix#OminousBannerRarityFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OminousBannerRarityFix.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OminousBannerRarityFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
OminousBannerRenameFix
- Full name:
net.minecraft.util.datafix.fixes.OminousBannerRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OminousBannerRenameFix.java - Type:
class - Modifiers:
public - Extends:
ItemStackTagFix
net.minecraft.util.datafix.fixes.OminousBannerRenameFix#fixItemStackTag(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OminousBannerRenameFix.java:12 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fixItemStackTag ตาม implementation ของ OminousBannerRenameFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), result(), isPresent(), asString(), replace(), set(), createString(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fixItemStackTag(Dynamic<T> dynamic) {
return super.fixItemStackTag(dynamic);
}
net.minecraft.util.datafix.fixes.OminousBannerRenameFix#OminousBannerRenameFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OminousBannerRenameFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OminousBannerRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: equals().
Parameters
Schema schema
ตัวอย่างใช้งาน
OptionsAccessibilityOnboardFix
- Full name:
net.minecraft.util.datafix.fixes.OptionsAccessibilityOnboardFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsAccessibilityOnboardFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsAccessibilityOnboardFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsAccessibilityOnboardFix.java:13 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), set(), createBoolean().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsAccessibilityOnboardFix#OptionsAccessibilityOnboardFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsAccessibilityOnboardFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsAccessibilityOnboardFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
OptionsAccessibilityOnboardFix instance = new OptionsAccessibilityOnboardFix(schema);
OptionsAddTextBackgroundFix
- Full name:
net.minecraft.util.datafix.fixes.OptionsAddTextBackgroundFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsAddTextBackgroundFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsAddTextBackgroundFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsAddTextBackgroundFix.java:14 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), orElse(), get(), asString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsAddTextBackgroundFix#OptionsAddTextBackgroundFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsAddTextBackgroundFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsAddTextBackgroundFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
OptionsAddTextBackgroundFix instance = new OptionsAddTextBackgroundFix(schema, true);
OptionsAmbientOcclusionFix
- Full name:
net.minecraft.util.datafix.fixes.OptionsAmbientOcclusionFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsAmbientOcclusionFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsAmbientOcclusionFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsAmbientOcclusionFix.java:14 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), orElse(), get(), asString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsAmbientOcclusionFix#OptionsAmbientOcclusionFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsAmbientOcclusionFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsAmbientOcclusionFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
OptionsForceVBOFix
- Full name:
net.minecraft.util.datafix.fixes.OptionsForceVBOFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsForceVBOFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsForceVBOFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsForceVBOFix.java:13 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), set(), createString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsForceVBOFix#OptionsForceVBOFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsForceVBOFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsForceVBOFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
OptionsKeyLwjgl3Fix
- Full name:
net.minecraft.util.datafix.fixes.OptionsKeyLwjgl3Fix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsKeyLwjgl3Fix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsKeyLwjgl3Fix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsKeyLwjgl3Fix.java:134 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), getMapValues(), map(), createMap(). มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsKeyLwjgl3Fix#OptionsKeyLwjgl3Fix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsKeyLwjgl3Fix.java:130 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsKeyLwjgl3Fix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
OptionsKeyTranslationFix
- Full name:
net.minecraft.util.datafix.fixes.OptionsKeyTranslationFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsKeyTranslationFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsKeyTranslationFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsKeyTranslationFix.java:15 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), getMapValues(), map(), createMap(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsKeyTranslationFix#OptionsKeyTranslationFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsKeyTranslationFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsKeyTranslationFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
OptionsKeyTranslationFix instance = new OptionsKeyTranslationFix(schema, true);
OptionsLowerCaseLanguageFix
- Full name:
net.minecraft.util.datafix.fixes.OptionsLowerCaseLanguageFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsLowerCaseLanguageFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsLowerCaseLanguageFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsLowerCaseLanguageFix.java:15 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), get(), asString(), result(). คืนค่า: optional.isPresent() ? dynamic.set("lang", dynamic.createString(optional.get().toLowerCase(Locale.ROOT))) : dynamic.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsLowerCaseLanguageFix#OptionsLowerCaseLanguageFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsLowerCaseLanguageFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsLowerCaseLanguageFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
OptionsLowerCaseLanguageFix instance = new OptionsLowerCaseLanguageFix(schema, true);
OptionsMenuBlurrinessFix
- Full name:
net.minecraft.util.datafix.fixes.OptionsMenuBlurrinessFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsMenuBlurrinessFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsMenuBlurrinessFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsMenuBlurrinessFix.java:13 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), createInt(), convertToIntRange(), asString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsMenuBlurrinessFix#OptionsMenuBlurrinessFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsMenuBlurrinessFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsMenuBlurrinessFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
OptionsProgrammerArtFix
- Full name:
net.minecraft.util.datafix.fixes.OptionsProgrammerArtFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsProgrammerArtFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsProgrammerArtFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsProgrammerArtFix.java:14 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsProgrammerArtFix#OptionsProgrammerArtFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsProgrammerArtFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsProgrammerArtFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
OptionsRenameFieldFix
- Full name:
net.minecraft.util.datafix.fixes.OptionsRenameFieldFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OptionsRenameFieldFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OptionsRenameFieldFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsRenameFieldFix.java:22 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), orElse(), get(), result().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OptionsRenameFieldFix#OptionsRenameFieldFix(Schema,boolean,String,String,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OptionsRenameFieldFix.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OptionsRenameFieldFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: fixName, fieldFrom, fieldTo.
Parameters
Schema schemaboolean blString stringString string2String string3
ตัวอย่างใช้งาน
Schema schema = ...;
OptionsRenameFieldFix instance = new OptionsRenameFieldFix(schema, true, "value", "value", "value");
OverreachingTickFix
- Full name:
net.minecraft.util.datafix.fixes.OverreachingTickFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/OverreachingTickFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.OverreachingTickFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OverreachingTickFix.java:19 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), getOptionalTyped(), isPresent(), get(), write(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.OverreachingTickFix#OverreachingTickFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/OverreachingTickFix.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OverreachingTickFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
ParticleUnflatteningFix
- Full name:
net.minecraft.util.datafix.fixes.ParticleUnflatteningFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ParticleUnflatteningFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ParticleUnflatteningFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ParticleUnflatteningFix.java:31 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), getOutputSchema(), writeFixAndRead(). คืนค่า: this.writeFixAndRead("ParticleUnflatteningFix", type, type2, this::fix).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ParticleUnflatteningFix#ParticleUnflatteningFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ParticleUnflatteningFix.java:27 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ParticleUnflatteningFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
PlayerHeadBlockProfileFix
- Full name:
net.minecraft.util.datafix.fixes.PlayerHeadBlockProfileFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/PlayerHeadBlockProfileFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.PlayerHeadBlockProfileFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PlayerHeadBlockProfileFix.java:14 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ PlayerHeadBlockProfileFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fix).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.PlayerHeadBlockProfileFix#PlayerHeadBlockProfileFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PlayerHeadBlockProfileFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PlayerHeadBlockProfileFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
PlayerUUIDFix
- Full name:
net.minecraft.util.datafix.fixes.PlayerUUIDFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/PlayerUUIDFix.java - Type:
class - Modifiers:
public - Extends:
AbstractUUIDFix
net.minecraft.util.datafix.fixes.PlayerUUIDFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PlayerUUIDFix.java:13 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), findField(), updateTyped(), type(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.PlayerUUIDFix#PlayerUUIDFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PlayerUUIDFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PlayerUUIDFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
PoiTypeRemoveFix
- Full name:
net.minecraft.util.datafix.fixes.PoiTypeRemoveFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/PoiTypeRemoveFix.java - Type:
class - Modifiers:
public - Extends:
AbstractPoiSectionFix
net.minecraft.util.datafix.fixes.PoiTypeRemoveFix#PoiTypeRemoveFix(Schema,String,Predicate<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PoiTypeRemoveFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PoiTypeRemoveFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: typesToKeep. เรียกต่อ: negate().
Parameters
Schema schemaString stringPredicate<String> predicate
ตัวอย่างใช้งาน
Schema schema = ...;
Predicate<String> predicate = ...;
PoiTypeRemoveFix instance = new PoiTypeRemoveFix(schema, "value", predicate);
net.minecraft.util.datafix.fixes.PoiTypeRemoveFix#processRecords(Stream<Dynamic<T>>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PoiTypeRemoveFix.java:16 - Modifiers:
protected - Return:
Stream<Dynamic<T>>
คืออะไร
ดำเนินการ processRecords ตาม implementation ของ PoiTypeRemoveFix
ทำงานยังไง
เรียกต่อ: filter(). คืนค่า: stream.filter(this::shouldKeepRecord).
Parameters
Stream<Dynamic<T>> stream
ตัวอย่างใช้งาน
Stream<Dynamic<T>> stream = ...;
@Override
protected Stream<Dynamic<T>> processRecords(Stream<Dynamic<T>> stream) {
return super.processRecords(stream);
}
PoiTypeRenameFix
- Full name:
net.minecraft.util.datafix.fixes.PoiTypeRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/PoiTypeRenameFix.java - Type:
class - Modifiers:
public - Extends:
AbstractPoiSectionFix
net.minecraft.util.datafix.fixes.PoiTypeRenameFix#PoiTypeRenameFix(Schema,String,Function<String, String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PoiTypeRenameFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PoiTypeRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: renamer.
Parameters
Schema schemaString stringFunction<String, String> function
ตัวอย่างใช้งาน
Schema schema = ...;
Function<String, String> function = ...;
PoiTypeRenameFix instance = new PoiTypeRenameFix(schema, "value", function);
net.minecraft.util.datafix.fixes.PoiTypeRenameFix#processRecords(Stream<Dynamic<T>>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PoiTypeRenameFix.java:17 - Modifiers:
protected - Return:
Stream<Dynamic<T>>
คืออะไร
ดำเนินการ processRecords ตาม implementation ของ PoiTypeRenameFix
ทำงานยังไง
เรียกต่อ: map(), update(), orElse(), asString(), result().
Parameters
Stream<Dynamic<T>> stream
ตัวอย่างใช้งาน
Stream<Dynamic<T>> stream = ...;
@Override
protected Stream<Dynamic<T>> processRecords(Stream<Dynamic<T>> stream) {
return super.processRecords(stream);
}
PrimedTntBlockStateFixer
- Full name:
net.minecraft.util.datafix.fixes.PrimedTntBlockStateFixer - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/PrimedTntBlockStateFixer.java - Type:
class - Modifiers:
public - Extends:
NamedEntityWriteReadFix
net.minecraft.util.datafix.fixes.PrimedTntBlockStateFixer#fix(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PrimedTntBlockStateFixer.java:22 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fix ตาม implementation ของ PrimedTntBlockStateFixer
ทำงานยังไง
เรียกต่อ: renameFuse(), insertBlockState(). คืนค่า: renameFuse(insertBlockState(dynamic)).
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fix(Dynamic<T> dynamic) {
return super.fix(dynamic);
}
net.minecraft.util.datafix.fixes.PrimedTntBlockStateFixer#PrimedTntBlockStateFixer(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/PrimedTntBlockStateFixer.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PrimedTntBlockStateFixer ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
ProjectileStoredWeaponFix
- Full name:
net.minecraft.util.datafix.fixes.ProjectileStoredWeaponFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ProjectileStoredWeaponFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ProjectileStoredWeaponFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ProjectileStoredWeaponFix.java:20 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), getOutputSchema(), fixTypeEverywhereTyped(), chainAllFilters(), fixChoice().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ProjectileStoredWeaponFix#ProjectileStoredWeaponFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ProjectileStoredWeaponFix.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ProjectileStoredWeaponFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
RandomSequenceSettingsFix
- Full name:
net.minecraft.util.datafix.fixes.RandomSequenceSettingsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/RandomSequenceSettingsFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.RandomSequenceSettingsFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RandomSequenceSettingsFix.java:13 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), emptyMap(), set().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.RandomSequenceSettingsFix#RandomSequenceSettingsFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RandomSequenceSettingsFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RandomSequenceSettingsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
RedstoneWireConnectionsFix
- Full name:
net.minecraft.util.datafix.fixes.RedstoneWireConnectionsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/RedstoneWireConnectionsFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.RedstoneWireConnectionsFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RedstoneWireConnectionsFix.java:14 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), fixTypeEverywhereTyped(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.RedstoneWireConnectionsFix#RedstoneWireConnectionsFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RedstoneWireConnectionsFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RedstoneWireConnectionsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
References
- Full name:
net.minecraft.util.datafix.fixes.References - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/References.java - Type:
class - Modifiers:
public
net.minecraft.util.datafix.fixes.References#reference(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/References.java:46 - Modifiers:
public static - Return:
TypeReference
คืออะไร
ดำเนินการ reference ตาม implementation ของ References
ทำงานยังไง
เรียกต่อ: typeName(), toString(). สร้างออบเจ็กต์: TypeReference. มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
RemapChunkStatusFix
- Full name:
net.minecraft.util.datafix.fixes.RemapChunkStatusFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/RemapChunkStatusFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.RemapChunkStatusFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RemapChunkStatusFix.java:23 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.RemapChunkStatusFix#RemapChunkStatusFix(Schema,String,UnaryOperator<String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RemapChunkStatusFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RemapChunkStatusFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, mapper.
Parameters
Schema schemaString stringUnaryOperator<String> unaryOperator
ตัวอย่างใช้งาน
Schema schema = ...;
UnaryOperator<String> unaryOperator = ...;
RemapChunkStatusFix instance = new RemapChunkStatusFix(schema, "value", unaryOperator);
RemoveEmptyItemInBrushableBlockFix
- Full name:
net.minecraft.util.datafix.fixes.RemoveEmptyItemInBrushableBlockFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/RemoveEmptyItemInBrushableBlockFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityWriteReadFix
net.minecraft.util.datafix.fixes.RemoveEmptyItemInBrushableBlockFix#fix(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RemoveEmptyItemInBrushableBlockFix.java:13 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fix ตาม implementation ของ RemoveEmptyItemInBrushableBlockFix
ทำงานยังไง
เรียกต่อ: get(), result(), isPresent(), isEmptyStack(), remove(). คืนค่า: optional.isPresent() && isEmptyStack(optional.get()) ? dynamic.remove("item") : dynamic.
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fix(Dynamic<T> dynamic) {
return super.fix(dynamic);
}
net.minecraft.util.datafix.fixes.RemoveEmptyItemInBrushableBlockFix#RemoveEmptyItemInBrushableBlockFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RemoveEmptyItemInBrushableBlockFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RemoveEmptyItemInBrushableBlockFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
RemoveEmptyItemInBrushableBlockFix instance = new RemoveEmptyItemInBrushableBlockFix(schema);
RemoveGolemGossipFix
- Full name:
net.minecraft.util.datafix.fixes.RemoveGolemGossipFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/RemoveGolemGossipFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.RemoveGolemGossipFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RemoveGolemGossipFix.java:13 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ RemoveGolemGossipFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), RemoveGolemGossipFix::fixValue).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.RemoveGolemGossipFix#RemoveGolemGossipFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RemoveGolemGossipFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RemoveGolemGossipFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
RenameEnchantmentsFix
- Full name:
net.minecraft.util.datafix.fixes.RenameEnchantmentsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/RenameEnchantmentsFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.RenameEnchantmentsFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RenameEnchantmentsFix.java:24 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder(). คืนค่า: this.fixTypeEverywhereTyped(this.name, type, typed -> typed.updateTyped(opticFinder, typedx -> typedx.update(DSL.remainderFinder(), this::fixTag))).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.RenameEnchantmentsFix#RenameEnchantmentsFix(Schema,String,Map<String, String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/RenameEnchantmentsFix.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ RenameEnchantmentsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, renames.
Parameters
Schema schemaString stringMap<String, String> map
ตัวอย่างใช้งาน
Schema schema = ...;
Map<String, String> map = ...;
RenameEnchantmentsFix instance = new RenameEnchantmentsFix(schema, "value", map);
ReorganizePoi
- Full name:
net.minecraft.util.datafix.fixes.ReorganizePoi - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ReorganizePoi.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ReorganizePoi#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ReorganizePoi.java:21 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: named(), typeName(), remainderType(), equals(), getInputSchema(), getType(), fixTypeEverywhere(), mapSecond(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.fixTypeEverywhere("POI reorganization", type, dynamicOps -> pair -> pair.mapSecond(ReorganizePoi::cap)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ReorganizePoi#ReorganizePoi(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ReorganizePoi.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ReorganizePoi ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
SavedDataFeaturePoolElementFix
- Full name:
net.minecraft.util.datafix.fixes.SavedDataFeaturePoolElementFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/SavedDataFeaturePoolElementFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.SavedDataFeaturePoolElementFix#fixFeature(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SavedDataFeaturePoolElementFix.java:90 - Modifiers:
protected static - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixFeature ตาม implementation ของ SavedDataFeaturePoolElementFix
ทำงานยังไง
เรียกต่อ: getReplacement(), get(), asString(), isPresent(), createString(). คืนค่า: optional.isPresent() ? dynamic.createString(optional.get()) : dynamic.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Dynamic<?> fixFeature(Dynamic<?> dynamic) {
return super.fixFeature(dynamic);
}
net.minecraft.util.datafix.fixes.SavedDataFeaturePoolElementFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SavedDataFeaturePoolElementFix.java:30 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: writeFixAndRead(), getInputSchema(), getType(), getOutputSchema().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.SavedDataFeaturePoolElementFix#SavedDataFeaturePoolElementFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SavedDataFeaturePoolElementFix.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SavedDataFeaturePoolElementFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
SavedDataFeaturePoolElementFix instance = new SavedDataFeaturePoolElementFix(schema);
SavedDataUUIDFix
- Full name:
net.minecraft.util.datafix.fixes.SavedDataUUIDFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/SavedDataUUIDFix.java - Type:
class - Modifiers:
public - Extends:
AbstractUUIDFix
net.minecraft.util.datafix.fixes.SavedDataUUIDFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SavedDataUUIDFix.java:16 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder(), createList(), asStream(), map(). คืนค่า: dynamicxxxxx.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.SavedDataUUIDFix#SavedDataUUIDFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SavedDataUUIDFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SavedDataUUIDFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
ScoreboardDisplaySlotFix
- Full name:
net.minecraft.util.datafix.fixes.ScoreboardDisplaySlotFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ScoreboardDisplaySlotFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.ScoreboardDisplaySlotFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ScoreboardDisplaySlotFix.java:46 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), update(), remainderFinder(), updateMapValues().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ScoreboardDisplaySlotFix#ScoreboardDisplaySlotFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ScoreboardDisplaySlotFix.java:37 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ScoreboardDisplaySlotFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
SimpleEntityRenameFix
- Full name:
net.minecraft.util.datafix.fixes.SimpleEntityRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/SimpleEntityRenameFix.java - Type:
class - Modifiers:
public abstract - Extends:
EntityRenameFix
net.minecraft.util.datafix.fixes.SimpleEntityRenameFix#fix(String,Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SimpleEntityRenameFix.java:14 - Modifiers:
protected - Return:
Pair<String, Typed<?>>
คืออะไร
ดำเนินการ fix ตาม implementation ของ SimpleEntityRenameFix
ทำงานยังไง
เรียกต่อ: getNewNameAndTag(), getOrCreate(), remainderFinder(), of(), getFirst(), set(), getSecond(). คืนค่า: Pair.of(pair.getFirst(), typed.set(DSL.remainderFinder(), pair.getSecond())).
Parameters
String stringTyped<?> typed
ตัวอย่างใช้งาน
Typed<?> typed = ...;
@Override
protected Pair<String, Typed<?>> fix(String string, Typed<?> typed) {
return super.fix(string, typed);
}
net.minecraft.util.datafix.fixes.SimpleEntityRenameFix#getNewNameAndTag(String,Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SimpleEntityRenameFix.java:20 - Modifiers:
protected abstract - Return:
Pair<String, Dynamic<?>>
คืออะไร
อ่านค่า New Name And Tag
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
String stringDynamic<?> dynamic
ตัวอย่างใช้งาน
Dynamic<?> dynamic = ...;
@Override
protected Pair<String, Dynamic<?>> getNewNameAndTag(String string, Dynamic<?> dynamic) {
return super.getNewNameAndTag(string, dynamic);
}
net.minecraft.util.datafix.fixes.SimpleEntityRenameFix#SimpleEntityRenameFix(String,Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SimpleEntityRenameFix.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SimpleEntityRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String stringSchema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
SimpleEntityRenameFix instance = new SimpleEntityRenameFix("value", schema, true);
SimplestEntityRenameFix
- Full name:
net.minecraft.util.datafix.fixes.SimplestEntityRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/SimplestEntityRenameFix.java - Type:
class - Modifiers:
public abstract - Extends:
DataFix
net.minecraft.util.datafix.fixes.SimplestEntityRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SimplestEntityRenameFix.java:22 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getInputSchema(), findChoiceType(), getOutputSchema(), named(), typeName(), namespacedString(), equals(), getType(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: string2.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.SimplestEntityRenameFix#rename(String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SimplestEntityRenameFix.java:43 - Modifiers:
protected abstract - Return:
String
คืออะไร
ดำเนินการ rename ตาม implementation ของ SimplestEntityRenameFix
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.SimplestEntityRenameFix#SimplestEntityRenameFix(String,Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SimplestEntityRenameFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SimplestEntityRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name.
Parameters
String stringSchema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
SimplestEntityRenameFix instance = new SimplestEntityRenameFix("value", schema, true);
SpawnerDataFix
- Full name:
net.minecraft.util.datafix.fixes.SpawnerDataFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/SpawnerDataFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.SpawnerDataFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SpawnerDataFix.java:19 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), getOutputSchema(), findField(), type(), fixTypeEverywhereTyped(), updateTyped(), wrapEntityToSpawnData().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.SpawnerDataFix#SpawnerDataFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/SpawnerDataFix.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SpawnerDataFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
StatsCounterFix
- Full name:
net.minecraft.util.datafix.fixes.StatsCounterFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/StatsCounterFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.StatsCounterFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StatsCounterFix.java:231 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: seq(), makeStatFixer(), makeObjectiveFixer(). คืนค่า: TypeRewriteRule.seq(this.makeStatFixer(), this.makeObjectiveFixer()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.StatsCounterFix#StatsCounterFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StatsCounterFix.java:187 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StatsCounterFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
StatsRenameFix
- Full name:
net.minecraft.util.datafix.fixes.StatsRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/StatsRenameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.StatsRenameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StatsRenameFix.java:23 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: seq(), createStatRule(), createCriteriaRule(). คืนค่า: TypeRewriteRule.seq(this.createStatRule(), this.createCriteriaRule()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.StatsRenameFix#StatsRenameFix(Schema,String,Map<String, String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StatsRenameFix.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StatsRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, renames.
Parameters
Schema schemaString stringMap<String, String> map
ตัวอย่างใช้งาน
Schema schema = ...;
Map<String, String> map = ...;
StatsRenameFix instance = new StatsRenameFix(schema, "value", map);
StriderGravityFix
- Full name:
net.minecraft.util.datafix.fixes.StriderGravityFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/StriderGravityFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.StriderGravityFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StriderGravityFix.java:17 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ StriderGravityFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), this::fixTag).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.StriderGravityFix#fixTag(Dynamic<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StriderGravityFix.java:13 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ StriderGravityFix
ทำงานยังไง
เรียกต่อ: get(), asBoolean(), set(), createBoolean(). คืนค่า: dynamic.get("NoGravity").asBoolean(false) ? dynamic.set("NoGravity", dynamic.createBoolean(false)) : dynamic.
Parameters
Dynamic<?> dynamic
ตัวอย่างใช้งาน
StriderGravityFix instance = ...;
Dynamic<?> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
net.minecraft.util.datafix.fixes.StriderGravityFix#StriderGravityFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StriderGravityFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StriderGravityFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
StructureReferenceCountFix
- Full name:
net.minecraft.util.datafix.fixes.StructureReferenceCountFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/StructureReferenceCountFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.StructureReferenceCountFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StructureReferenceCountFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), fixTypeEverywhereTyped(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.StructureReferenceCountFix#StructureReferenceCountFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StructureReferenceCountFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StructureReferenceCountFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
StructureReferenceCountFix instance = new StructureReferenceCountFix(schema, true);
StructuresBecomeConfiguredFix
- Full name:
net.minecraft.util.datafix.fixes.StructuresBecomeConfiguredFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/StructuresBecomeConfiguredFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.StructuresBecomeConfiguredFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StructuresBecomeConfiguredFix.java:123 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), writeFixAndRead(). คืนค่า: this.writeFixAndRead("StucturesToConfiguredStructures", type, type2, this::fix).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.StructuresBecomeConfiguredFix#StructuresBecomeConfiguredFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StructuresBecomeConfiguredFix.java:119 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StructuresBecomeConfiguredFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
StructuresBecomeConfiguredFix instance = new StructuresBecomeConfiguredFix(schema);
StructureSettingsFlattenFix
- Full name:
net.minecraft.util.datafix.fixes.StructureSettingsFlattenFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/StructureSettingsFlattenFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.StructureSettingsFlattenFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StructureSettingsFlattenFix.java:18 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), updateTyped(), writeAndReadTypedOrThrow(), type(), updateMapValues().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.StructureSettingsFlattenFix#StructureSettingsFlattenFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/StructureSettingsFlattenFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StructureSettingsFlattenFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
StructureSettingsFlattenFix instance = new StructureSettingsFlattenFix(schema);
TeamDisplayNameFix
- Full name:
net.minecraft.util.datafix.fixes.TeamDisplayNameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/TeamDisplayNameFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.TeamDisplayNameFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TeamDisplayNameFix.java:18 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: named(), typeName(), remainderType(), equals(), getInputSchema(), getType(), fixTypeEverywhere(), mapSecond(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.TeamDisplayNameFix#TeamDisplayNameFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TeamDisplayNameFix.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TeamDisplayNameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
TippedArrowPotionToItemFix
- Full name:
net.minecraft.util.datafix.fixes.TippedArrowPotionToItemFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/TippedArrowPotionToItemFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityWriteReadFix
net.minecraft.util.datafix.fixes.TippedArrowPotionToItemFix#fix(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TippedArrowPotionToItemFix.java:12 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fix ตาม implementation ของ TippedArrowPotionToItemFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), result(), isEmpty(), remove(), update(), orElseEmptyMap(), isPresent(), set(). คืนค่า: dynamicx.set("tag", dynamic2).
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fix(Dynamic<T> dynamic) {
return super.fix(dynamic);
}
net.minecraft.util.datafix.fixes.TippedArrowPotionToItemFix#TippedArrowPotionToItemFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TippedArrowPotionToItemFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TippedArrowPotionToItemFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
TrappedChestBlockEntityFix
- Full name:
net.minecraft.util.datafix.fixes.TrappedChestBlockEntityFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/TrappedChestBlockEntityFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.TrappedChestBlockEntityFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrappedChestBlockEntityFix.java:31 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getOutputSchema(), getType(), findFieldType(), fieldFinder(), getInputSchema(), findField(), type(), getElement(). สร้างออบเจ็กต์: IllegalStateException, AddNewChoices, IntOpenHashSet, TrappedChestBlockEntityFix.TrappedChestSection. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.TrappedChestBlockEntityFix#TrappedChestBlockEntityFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrappedChestBlockEntityFix.java:27 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TrappedChestBlockEntityFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
TrappedChestBlockEntityFix instance = new TrappedChestBlockEntityFix(schema, true);
TrappedChestBlockEntityFix$TrappedChestSection
- Full name:
net.minecraft.util.datafix.fixes.TrappedChestBlockEntityFix$TrappedChestSection - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/TrappedChestBlockEntityFix.java - Type:
class - Modifiers:
public static final - Extends:
LeavesFix.Section
net.minecraft.util.datafix.fixes.TrappedChestBlockEntityFix$TrappedChestSection#isTrappedChest(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrappedChestBlockEntityFix.java:117 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Trapped Chest
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: this.chestIds.contains(i).
Parameters
int i
ตัวอย่างใช้งาน
TrappedChestBlockEntityFix.TrappedChestSection instance = ...;
boolean result = instance.isTrappedChest(0);
net.minecraft.util.datafix.fixes.TrappedChestBlockEntityFix$TrappedChestSection#skippable()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrappedChestBlockEntityFix.java:102 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ skippable ตาม implementation ของ TrappedChestBlockEntityFix$TrappedChestSection
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: chestIds. เรียกต่อ: size(), get(), asString(), equals(), add(), isEmpty(). สร้างออบเจ็กต์: IntOpenHashSet. คืนค่า: this.chestIds.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.TrappedChestBlockEntityFix$TrappedChestSection#TrappedChestSection(Typed<?>,Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrappedChestBlockEntityFix.java:98 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TrappedChestBlockEntityFix.TrappedChestSection ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Typed<?> typedSchema schema
ตัวอย่างใช้งาน
Typed<?> typed = ...;
Schema schema = ...;
TrappedChestBlockEntityFix.TrappedChestSection instance = new TrappedChestBlockEntityFix.TrappedChestSection(typed, schema);
TrialSpawnerConfigFix
- Full name:
net.minecraft.util.datafix.fixes.TrialSpawnerConfigFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/TrialSpawnerConfigFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityWriteReadFix
net.minecraft.util.datafix.fixes.TrialSpawnerConfigFix#fix(Dynamic<T>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrialSpawnerConfigFix.java:40 - Modifiers:
protected - Return:
Dynamic<T>
คืออะไร
ดำเนินการ fix ตาม implementation ของ TrialSpawnerConfigFix
ทำงานยังไง
เรียกต่อ: moveToConfigTag(). คืนค่า: moveToConfigTag(dynamic).
Parameters
Dynamic<T> dynamic
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> fix(Dynamic<T> dynamic) {
return super.fix(dynamic);
}
net.minecraft.util.datafix.fixes.TrialSpawnerConfigFix#TrialSpawnerConfigFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrialSpawnerConfigFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TrialSpawnerConfigFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
TrialSpawnerConfigInRegistryFix
- Full name:
net.minecraft.util.datafix.fixes.TrialSpawnerConfigInRegistryFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/TrialSpawnerConfigInRegistryFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.TrialSpawnerConfigInRegistryFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrialSpawnerConfigInRegistryFix.java:46 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ TrialSpawnerConfigInRegistryFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), getOps(), fixTag(), convert(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.TrialSpawnerConfigInRegistryFix#fixTag(Dynamic<Tag>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrialSpawnerConfigInRegistryFix.java:28 - Modifiers:
public - Return:
Dynamic<?>
คืออะไร
ดำเนินการ fixTag ตาม implementation ของ TrialSpawnerConfigInRegistryFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), result(), isEmpty(), of(), set(), createString(), withSuffix(), toString(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Dynamic<Tag> dynamic
ตัวอย่างใช้งาน
TrialSpawnerConfigInRegistryFix instance = ...;
Dynamic<Tag> dynamic = ...;
Dynamic<?> result = instance.fixTag(dynamic);
net.minecraft.util.datafix.fixes.TrialSpawnerConfigInRegistryFix#TrialSpawnerConfigInRegistryFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/TrialSpawnerConfigInRegistryFix.java:24 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TrialSpawnerConfigInRegistryFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
TrialSpawnerConfigInRegistryFix instance = new TrialSpawnerConfigInRegistryFix(schema);
VariantRenameFix
- Full name:
net.minecraft.util.datafix.fixes.VariantRenameFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/VariantRenameFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.VariantRenameFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VariantRenameFix.java:18 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ VariantRenameFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), orElse(), asString(), map(), createString(), getOrDefault(), result().
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.VariantRenameFix#VariantRenameFix(Schema,String,TypeReference,String,Map<String, String>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VariantRenameFix.java:13 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VariantRenameFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: renames.
Parameters
Schema schemaString stringTypeReference typeReferenceString string2Map<String, String> map
ตัวอย่างใช้งาน
Schema schema = ...;
TypeReference typeReference = ...;
Map<String, String> map = ...;
VariantRenameFix instance = new VariantRenameFix(schema, "value", typeReference, "value", map);
VillagerDataFix
- Full name:
net.minecraft.util.datafix.fixes.VillagerDataFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/VillagerDataFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.VillagerDataFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerDataFix.java:15 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ VillagerDataFix
ทำงานยังไง
เรียกต่อ: get(), remainderFinder(), set(), remove(), createMap(), of(), createString(), upgradeData().
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.VillagerDataFix#VillagerDataFix(Schema,String)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerDataFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VillagerDataFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: fix().
Parameters
Schema schemaString string
ตัวอย่างใช้งาน
VillagerFollowRangeFix
- Full name:
net.minecraft.util.datafix.fixes.VillagerFollowRangeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/VillagerFollowRangeFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.VillagerFollowRangeFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerFollowRangeFix.java:16 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ VillagerFollowRangeFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), VillagerFollowRangeFix::fixValue).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.VillagerFollowRangeFix#VillagerFollowRangeFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerFollowRangeFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VillagerFollowRangeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
VillagerRebuildLevelAndXpFix
- Full name:
net.minecraft.util.datafix.fixes.VillagerRebuildLevelAndXpFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/VillagerRebuildLevelAndXpFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.VillagerRebuildLevelAndXpFix#getMinXpPerLevel(int)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerRebuildLevelAndXpFix.java:19 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Min Xp Per Level
ทำงานยังไง
เรียกต่อ: clamp(). คืนค่า: LEVEL_XP_THRESHOLDS[Mth.clamp(i - 1, 0, LEVEL_XP_THRESHOLDS.length - 1)].
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.VillagerRebuildLevelAndXpFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerRebuildLevelAndXpFix.java:27 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getChoiceType(), namedChoice(), findField(), type(), getElement(), finder(), fixTypeEverywhereTyped(). คืนค่า: typed2.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.VillagerRebuildLevelAndXpFix#VillagerRebuildLevelAndXpFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerRebuildLevelAndXpFix.java:23 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VillagerRebuildLevelAndXpFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
VillagerRebuildLevelAndXpFix instance = new VillagerRebuildLevelAndXpFix(schema, true);
VillagerSetCanPickUpLootFix
- Full name:
net.minecraft.util.datafix.fixes.VillagerSetCanPickUpLootFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/VillagerSetCanPickUpLootFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.VillagerSetCanPickUpLootFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerSetCanPickUpLootFix.java:15 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ VillagerSetCanPickUpLootFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(). คืนค่า: typed.update(DSL.remainderFinder(), VillagerSetCanPickUpLootFix::fixValue).
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.VillagerSetCanPickUpLootFix#VillagerSetCanPickUpLootFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerSetCanPickUpLootFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VillagerSetCanPickUpLootFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
VillagerSetCanPickUpLootFix instance = new VillagerSetCanPickUpLootFix(schema);
VillagerTradeFix
- Full name:
net.minecraft.util.datafix.fixes.VillagerTradeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/VillagerTradeFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.VillagerTradeFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerTradeFix.java:20 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: getInputSchema(), getType(), findField(), fieldFinder(), named(), typeName(), namespacedString(), updateItemStack().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.VillagerTradeFix#VillagerTradeFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/VillagerTradeFix.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VillagerTradeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
WallPropertyFix
- Full name:
net.minecraft.util.datafix.fixes.WallPropertyFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/WallPropertyFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.WallPropertyFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WallPropertyFix.java:34 - Modifiers:
public - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.WallPropertyFix#WallPropertyFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WallPropertyFix.java:30 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WallPropertyFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
WeaponSmithChestLootTableFix
- Full name:
net.minecraft.util.datafix.fixes.WeaponSmithChestLootTableFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/WeaponSmithChestLootTableFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.WeaponSmithChestLootTableFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WeaponSmithChestLootTableFix.java:12 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ WeaponSmithChestLootTableFix
ทำงานยังไง
เรียกต่อ: update(), remainderFinder(), get(), asString(), equals(), set(), createString(). คืนค่า: typed.update( DSL.remainderFinder(), dynamic -> { String string = dynamic.get("LootTable").asString("").
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.WeaponSmithChestLootTableFix#WeaponSmithChestLootTableFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WeaponSmithChestLootTableFix.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WeaponSmithChestLootTableFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
WeaponSmithChestLootTableFix instance = new WeaponSmithChestLootTableFix(schema, true);
WorldGenSettingsDisallowOldCustomWorldsFix
- Full name:
net.minecraft.util.datafix.fixes.WorldGenSettingsDisallowOldCustomWorldsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/WorldGenSettingsDisallowOldCustomWorldsFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.WorldGenSettingsDisallowOldCustomWorldsFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WorldGenSettingsDisallowOldCustomWorldsFix.java:15 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), findField(), fixTypeEverywhereTyped(), getOutputSchema(), getVersionKey(), updateTyped(), write(). สร้างออบเจ็กต์: NbtFormatException. มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.WorldGenSettingsDisallowOldCustomWorldsFix#WorldGenSettingsDisallowOldCustomWorldsFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WorldGenSettingsDisallowOldCustomWorldsFix.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldGenSettingsDisallowOldCustomWorldsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
WorldGenSettingsDisallowOldCustomWorldsFix instance = new WorldGenSettingsDisallowOldCustomWorldsFix(schema);
WorldGenSettingsFix
- Full name:
net.minecraft.util.datafix.fixes.WorldGenSettingsFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/WorldGenSettingsFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.WorldGenSettingsFix#defaultOverworld(Dynamic<T>,long)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WorldGenSettingsFix.java:194 - Modifiers:
protected static - Return:
Dynamic<T>
คืออะไร
ดำเนินการ defaultOverworld ตาม implementation ของ WorldGenSettingsFix
ทำงานยังไง
เรียกต่อ: noise(), createString(), vanillaBiomeSource(). คืนค่า: noise(l, dynamic, dynamic.createString("minecraft:overworld"), vanillaBiomeSource(dynamic, l, false, false)).
Parameters
Dynamic<T> dynamiclong l
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
@Override
protected Dynamic<T> defaultOverworld(Dynamic<T> dynamic, long l) {
return super.defaultOverworld(dynamic, l);
}
net.minecraft.util.datafix.fixes.WorldGenSettingsFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WorldGenSettingsFix.java:52 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: fixTypeEverywhereTyped(), getInputSchema(), getType(), update(), remainderFinder().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.WorldGenSettingsFix#vanillaLevels(Dynamic<T>,long,Dynamic<T>,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WorldGenSettingsFix.java:198 - Modifiers:
protected static - Return:
T
คืออะไร
ดำเนินการ vanillaLevels ตาม implementation ของ WorldGenSettingsFix
ทำงานยังไง
เรียกต่อ: getOps(), createMap(), of(), createString(), getValue(), noise(), createLong().
Parameters
Dynamic<T> dynamiclong lDynamic<T> dynamic2boolean bl
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
Dynamic<T> dynamic2 = ...;
@Override
protected T vanillaLevels(Dynamic<T> dynamic, long l, Dynamic<T> dynamic2, boolean bl) {
return super.vanillaLevels(dynamic, l, dynamic2, bl);
}
net.minecraft.util.datafix.fixes.WorldGenSettingsFix#WorldGenSettingsFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WorldGenSettingsFix.java:48 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldGenSettingsFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
WorldGenSettingsHeightAndBiomeFix
- Full name:
net.minecraft.util.datafix.fixes.WorldGenSettingsHeightAndBiomeFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/WorldGenSettingsHeightAndBiomeFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.WorldGenSettingsHeightAndBiomeFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WorldGenSettingsHeightAndBiomeFix.java:24 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInputSchema(), getType(), findField(), getOutputSchema(), findFieldType(), fixTypeEverywhereTyped(), get(), remainderFinder(). สร้างออบเจ็กต์: MutableBoolean. มีจุด return อย่างน้อย 3 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.WorldGenSettingsHeightAndBiomeFix#WorldGenSettingsHeightAndBiomeFix(Schema)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WorldGenSettingsHeightAndBiomeFix.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WorldGenSettingsHeightAndBiomeFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schema
ตัวอย่างใช้งาน
Schema schema = ...;
WorldGenSettingsHeightAndBiomeFix instance = new WorldGenSettingsHeightAndBiomeFix(schema);
WriteAndReadFix
- Full name:
net.minecraft.util.datafix.fixes.WriteAndReadFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/WriteAndReadFix.java - Type:
class - Modifiers:
public - Extends:
DataFix
net.minecraft.util.datafix.fixes.WriteAndReadFix#makeRule()
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WriteAndReadFix.java:18 - Modifiers:
protected - Return:
TypeRewriteRule
คืออะไร
สร้าง Rule
ทำงานยังไง
เรียกต่อ: writeAndRead(), getInputSchema(), getType(), getOutputSchema(). คืนค่า: this.writeAndRead(this.name, this.getInputSchema().getType(this.type), this.getOutputSchema().getType(this.type)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.WriteAndReadFix#WriteAndReadFix(Schema,String,TypeReference)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/WriteAndReadFix.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WriteAndReadFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, type.
Parameters
Schema schemaString stringTypeReference typeReference
ตัวอย่างใช้งาน
Schema schema = ...;
TypeReference typeReference = ...;
WriteAndReadFix instance = new WriteAndReadFix(schema, "value", typeReference);
ZombieVillagerRebuildXpFix
- Full name:
net.minecraft.util.datafix.fixes.ZombieVillagerRebuildXpFix - Package:
net.minecraft.util.datafix.fixes - Source:
common—net/minecraft/util/datafix/fixes/ZombieVillagerRebuildXpFix.java - Type:
class - Modifiers:
public - Extends:
NamedEntityFix
net.minecraft.util.datafix.fixes.ZombieVillagerRebuildXpFix#fix(Typed<?>)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ZombieVillagerRebuildXpFix.java:13 - Modifiers:
protected - Return:
Typed<?>
คืออะไร
ดำเนินการ fix ตาม implementation ของ ZombieVillagerRebuildXpFix
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: update(), remainderFinder(), get(), asNumber(), result(), isEmpty(), asInt(), set(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Typed<?> typed
ตัวอย่างใช้งาน
net.minecraft.util.datafix.fixes.ZombieVillagerRebuildXpFix#ZombieVillagerRebuildXpFix(Schema,boolean)
- Origin:
common - Source:
net/minecraft/util/datafix/fixes/ZombieVillagerRebuildXpFix.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ZombieVillagerRebuildXpFix ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Schema schemaboolean bl
ตัวอย่างใช้งาน
Schema schema = ...;
ZombieVillagerRebuildXpFix instance = new ZombieVillagerRebuildXpFix(schema, true);