Package net.minecraft.network.chat.numbers
Part 1/1
BlankFormat
- Full name:
net.minecraft.network.chat.numbers.BlankFormat - Package:
net.minecraft.network.chat.numbers - Source:
common—net/minecraft/network/chat/numbers/BlankFormat.java - Type:
class - Modifiers:
public - Implements:
NumberFormat
net.minecraft.network.chat.numbers.BlankFormat#format(int)
- Origin:
common - Source:
net/minecraft/network/chat/numbers/BlankFormat.java:26 - Modifiers:
public - Return:
MutableComponent
คืออะไร
ดำเนินการ format ตาม implementation ของ BlankFormat
ทำงานยังไง
เรียกต่อ: empty(). คืนค่า: Component.empty().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.network.chat.numbers.BlankFormat#type()
- Origin:
common - Source:
net/minecraft/network/chat/numbers/BlankFormat.java:31 - Modifiers:
public - Return:
NumberFormatType<BlankFormat>
คืออะไร
ดำเนินการ type ตาม implementation ของ BlankFormat
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
FixedFormat
- Full name:
net.minecraft.network.chat.numbers.FixedFormat - Package:
net.minecraft.network.chat.numbers - Source:
common—net/minecraft/network/chat/numbers/FixedFormat.java - Type:
class - Modifiers:
public - Implements:
NumberFormat
net.minecraft.network.chat.numbers.FixedFormat#FixedFormat(Component)
- Origin:
common - Source:
net/minecraft/network/chat/numbers/FixedFormat.java:29 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FixedFormat ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: value.
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.network.chat.numbers.FixedFormat#format(int)
- Origin:
common - Source:
net/minecraft/network/chat/numbers/FixedFormat.java:33 - Modifiers:
public - Return:
MutableComponent
คืออะไร
ดำเนินการ format ตาม implementation ของ FixedFormat
ทำงานยังไง
เรียกต่อ: copy(). คืนค่า: this.value.copy().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.network.chat.numbers.FixedFormat#type()
- Origin:
common - Source:
net/minecraft/network/chat/numbers/FixedFormat.java:38 - Modifiers:
public - Return:
NumberFormatType<FixedFormat>
คืออะไร
ดำเนินการ type ตาม implementation ของ FixedFormat
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NumberFormat
- Full name:
net.minecraft.network.chat.numbers.NumberFormat - Package:
net.minecraft.network.chat.numbers - Source:
common—net/minecraft/network/chat/numbers/NumberFormat.java - Type:
interface - Modifiers:
public
net.minecraft.network.chat.numbers.NumberFormat#format(int)
- Origin:
common - Source:
net/minecraft/network/chat/numbers/NumberFormat.java:6 - Modifiers: ``
- Return:
MutableComponent
คืออะไร
ดำเนินการ format ตาม implementation ของ NumberFormat
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.network.chat.numbers.NumberFormat#type()
- Origin:
common - Source:
net/minecraft/network/chat/numbers/NumberFormat.java:8 - Modifiers: ``
- Return:
NumberFormatType<? extends NumberFormat>
คืออะไร
ดำเนินการ type ตาม implementation ของ NumberFormat
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NumberFormatType
- Full name:
net.minecraft.network.chat.numbers.NumberFormatType - Package:
net.minecraft.network.chat.numbers - Source:
common—net/minecraft/network/chat/numbers/NumberFormatType.java - Type:
interface - Modifiers:
public
net.minecraft.network.chat.numbers.NumberFormatType#mapCodec()
- Origin:
common - Source:
net/minecraft/network/chat/numbers/NumberFormatType.java:8 - Modifiers: ``
- Return:
MapCodec<T>
คืออะไร
ดำเนินการ mapCodec ตาม implementation ของ NumberFormatType
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.network.chat.numbers.NumberFormatType#streamCodec()
- Origin:
common - Source:
net/minecraft/network/chat/numbers/NumberFormatType.java:10 - Modifiers: ``
- Return:
StreamCodec<RegistryFriendlyByteBuf, T>
คืออะไร
ดำเนินการ streamCodec ตาม implementation ของ NumberFormatType
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
NumberFormatType instance = ...;
StreamCodec<RegistryFriendlyByteBuf, T> result = instance.streamCodec();
NumberFormatTypes
- Full name:
net.minecraft.network.chat.numbers.NumberFormatTypes - Package:
net.minecraft.network.chat.numbers - Source:
common—net/minecraft/network/chat/numbers/NumberFormatTypes.java - Type:
class - Modifiers:
public
net.minecraft.network.chat.numbers.NumberFormatTypes#bootstrap(Registry<NumberFormatType<?>>)
- Origin:
common - Source:
net/minecraft/network/chat/numbers/NumberFormatTypes.java:22 - Modifiers:
public static - Return:
NumberFormatType<?>
คืออะไร
ดำเนินการ bootstrap ตาม implementation ของ NumberFormatTypes
ทำงานยังไง
เรียกต่อ: register(). คืนค่า: Registry.register(registry, "fixed", FixedFormat.TYPE).
Parameters
Registry<NumberFormatType<?>> registry
ตัวอย่างใช้งาน
Registry<NumberFormatType<?>> registry = ...;
NumberFormatType<?> result = NumberFormatTypes.bootstrap(registry);
StyledFormat
- Full name:
net.minecraft.network.chat.numbers.StyledFormat - Package:
net.minecraft.network.chat.numbers - Source:
common—net/minecraft/network/chat/numbers/StyledFormat.java - Type:
class - Modifiers:
public - Implements:
NumberFormat
net.minecraft.network.chat.numbers.StyledFormat#format(int)
- Origin:
common - Source:
net/minecraft/network/chat/numbers/StyledFormat.java:37 - Modifiers:
public - Return:
MutableComponent
คืออะไร
ดำเนินการ format ตาม implementation ของ StyledFormat
ทำงานยังไง
เรียกต่อ: literal(), toString(), withStyle(). คืนค่า: Component.literal(Integer.toString(i)).withStyle(this.style).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.network.chat.numbers.StyledFormat#StyledFormat(Style)
- Origin:
common - Source:
net/minecraft/network/chat/numbers/StyledFormat.java:33 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StyledFormat ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: style.
Parameters
Style style
ตัวอย่างใช้งาน
net.minecraft.network.chat.numbers.StyledFormat#type()
- Origin:
common - Source:
net/minecraft/network/chat/numbers/StyledFormat.java:42 - Modifiers:
public - Return:
NumberFormatType<StyledFormat>
คืออะไร
ดำเนินการ type ตาม implementation ของ StyledFormat
ทำงานยังไง
คืนค่า: TYPE.
Parameters
- ไม่มี