Package net.minecraft.world.scores
Part 1/1
DisplaySlot
- Full name:
net.minecraft.world.scores.DisplaySlot - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/DisplaySlot.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.scores.DisplaySlot#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/scores/DisplaySlot.java:44 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.DisplaySlot#id()
- Origin:
common - Source:
net/minecraft/world/scores/DisplaySlot.java:40 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ id ตาม implementation ของ DisplaySlot
ทำงานยังไง
คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.DisplaySlot#teamColorToSlot(ChatFormatting)
- Origin:
common - Source:
net/minecraft/world/scores/DisplaySlot.java:49 - Modifiers:
public static - Return:
DisplaySlot
คืออะไร
ดำเนินการ teamColorToSlot ตาม implementation ของ DisplaySlot
ทำงานยังไง
แยกกรณีด้วย switch. คืนค่า: switch (chatFormatting) { case BLACK -> TEAM_BLACK.
Parameters
ChatFormatting chatFormatting
ตัวอย่างใช้งาน
ChatFormatting chatFormatting = ...;
DisplaySlot result = DisplaySlot.teamColorToSlot(chatFormatting);
Objective
- Full name:
net.minecraft.world.scores.Objective - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/Objective.java - Type:
class - Modifiers:
public
net.minecraft.world.scores.Objective#displayAutoUpdate()
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:57 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ displayAutoUpdate ตาม implementation ของ Objective
ทำงานยังไง
คืนค่า: this.displayAutoUpdate.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#getCriteria()
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:49 - Modifiers:
public - Return:
ObjectiveCriteria
คืออะไร
อ่านค่า Criteria
ทำงานยังไง
คืนค่า: this.criteria.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:53 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
คืนค่า: this.displayName.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#getFormattedDisplayName()
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:76 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Formatted Display Name
ทำงานยังไง
คืนค่า: this.formattedDisplayName.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#getName()
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:45 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#getRenderType()
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:86 - Modifiers:
public - Return:
ObjectiveCriteria.RenderType
คืออะไร
อ่านค่า Render Type
ทำงานยังไง
คืนค่า: this.renderType.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#getScoreboard()
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:41 - Modifiers:
public - Return:
Scoreboard
คืออะไร
อ่านค่า Scoreboard
ทำงานยังไง
คืนค่า: this.scoreboard.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#numberFormat()
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:61 - Modifiers:
public - Return:
NumberFormat
คืออะไร
ดำเนินการ numberFormat ตาม implementation ของ Objective
ทำงานยังไง
คืนค่า: this.numberFormat.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#numberFormatOrDefault(NumberFormat)
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:66 - Modifiers:
public - Return:
NumberFormat
คืออะไร
ดำเนินการ numberFormatOrDefault ตาม implementation ของ Objective
ทำงานยังไง
เรียกต่อ: requireNonNullElse(). คืนค่า: Objects.requireNonNullElse(this.numberFormat, numberFormat).
Parameters
NumberFormat numberFormat
ตัวอย่างใช้งาน
Objective instance = ...;
NumberFormat numberFormat = ...;
NumberFormat result = instance.numberFormatOrDefault(numberFormat);
net.minecraft.world.scores.Objective#Objective(Scoreboard,String,ObjectiveCriteria,Component,ObjectiveCriteria.RenderType,boolean,NumberFormat)
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Objective ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: scoreboard, name, criteria, displayName, formattedDisplayName, renderType. เรียกต่อ: createFormattedDisplayName().
Parameters
Scoreboard scoreboardString stringObjectiveCriteria objectiveCriteriaComponent componentObjectiveCriteria.RenderType renderTypeboolean blNumberFormat numberFormat
ตัวอย่างใช้งาน
Scoreboard scoreboard = ...;
ObjectiveCriteria objectiveCriteria = ...;
Component component = ...;
ObjectiveCriteria.RenderType renderType = ...;
NumberFormat numberFormat = ...;
Objective instance = new Objective(scoreboard, "value", objectiveCriteria, component, renderType, true, numberFormat);
net.minecraft.world.scores.Objective#setDisplayAutoUpdate(boolean)
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:95 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Display Auto Update
ทำงานยังไง
แก้ state: displayAutoUpdate. เรียกต่อ: onObjectiveChanged().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#setDisplayName(Component)
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:80 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Display Name
ทำงานยังไง
แก้ state: displayName, formattedDisplayName. เรียกต่อ: createFormattedDisplayName(), onObjectiveChanged().
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#setNumberFormat(NumberFormat)
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:100 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Number Format
ทำงานยังไง
แก้ state: numberFormat. เรียกต่อ: onObjectiveChanged().
Parameters
NumberFormat numberFormat
ตัวอย่างใช้งาน
net.minecraft.world.scores.Objective#setRenderType(ObjectiveCriteria.RenderType)
- Origin:
common - Source:
net/minecraft/world/scores/Objective.java:90 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Render Type
ทำงานยังไง
แก้ state: renderType. เรียกต่อ: onObjectiveChanged().
Parameters
ObjectiveCriteria.RenderType renderType
ตัวอย่างใช้งาน
Objective instance = ...;
ObjectiveCriteria.RenderType renderType = ...;
instance.setRenderType(renderType);
PlayerScoreEntry
- Full name:
net.minecraft.world.scores.PlayerScoreEntry - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/PlayerScoreEntry.java - Type:
record - Modifiers:
public
net.minecraft.world.scores.PlayerScoreEntry#formatValue(NumberFormat)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerScoreEntry.java:18 - Modifiers:
public - Return:
MutableComponent
คืออะไร
ดำเนินการ formatValue ตาม implementation ของ PlayerScoreEntry
ทำงานยังไง
เรียกต่อ: requireNonNullElse(), format(). คืนค่า: Objects.requireNonNullElse(this.numberFormatOverride, numberFormat).format(this.value).
Parameters
NumberFormat numberFormat
ตัวอย่างใช้งาน
PlayerScoreEntry instance = ...;
NumberFormat numberFormat = ...;
MutableComponent result = instance.formatValue(numberFormat);
net.minecraft.world.scores.PlayerScoreEntry#isHidden()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerScoreEntry.java:10 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Hidden
ทำงานยังไง
เรียกต่อ: startsWith(). คืนค่า: this.owner.startsWith("#").
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerScoreEntry#ownerName()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerScoreEntry.java:14 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ ownerName ตาม implementation ของ PlayerScoreEntry
ทำงานยังไง
เรียกต่อ: literal(), owner(). คืนค่า: this.display != null ? this.display : Component.literal(this.owner()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PlayerTeam
- Full name:
net.minecraft.world.scores.PlayerTeam - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/PlayerTeam.java - Type:
class - Modifiers:
public - Extends:
Team
net.minecraft.world.scores.PlayerTeam#canSeeFriendlyInvisibles()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:119 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ See Friendly Invisibles
ทำงานยังไง
คืนค่า: this.seeFriendlyInvisibles.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#formatNameForTeam(Team,Component)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:105 - Modifiers:
public static - Return:
MutableComponent
คืออะไร
ดำเนินการ formatNameForTeam ตาม implementation ของ PlayerTeam
ทำงานยังไง
เรียกต่อ: copy(), getFormattedName(). คืนค่า: team == null ? component.copy() : team.getFormattedName(component).
Parameters
Team teamComponent component
ตัวอย่างใช้งาน
Team team = ...;
Component component = ...;
MutableComponent result = PlayerTeam.formatNameForTeam(team, component);
net.minecraft.world.scores.PlayerTeam#getCollisionRule()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:149 - Modifiers:
public - Return:
Team.CollisionRule
คืออะไร
อ่านค่า Collision Rule
ทำงานยังไง
คืนค่า: this.collisionRule.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getColor()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:182 - Modifiers:
public - Return:
ChatFormatting
คืออะไร
อ่านค่า Color
ทำงานยังไง
คืนค่า: this.color.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getDeathMessageVisibility()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:134 - Modifiers:
public - Return:
Team.Visibility
คืออะไร
อ่านค่า Death Message Visibility
ทำงานยังไง
คืนค่า: this.deathMessageVisibility.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:48 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
คืนค่า: this.displayName.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getFormattedDisplayName()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:52 - Modifiers:
public - Return:
MutableComponent
คืออะไร
อ่านค่า Formatted Display Name
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: wrapInSquareBrackets(), copy(), withStyle(), getColor(). คืนค่า: mutableComponent.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getFormattedName(Component)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:94 - Modifiers:
public - Return:
MutableComponent
คืออะไร
อ่านค่า Formatted Name
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: empty(), append(), getColor(), withStyle(). คืนค่า: mutableComponent.
Parameters
Component component
ตัวอย่างใช้งาน
PlayerTeam instance = ...;
Component component = ...;
MutableComponent result = instance.getFormattedName(component);
net.minecraft.world.scores.PlayerTeam#getName()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:43 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getNameTagVisibility()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:129 - Modifiers:
public - Return:
Team.Visibility
คืออะไร
อ่านค่า Name Tag Visibility
ทำงานยังไง
คืนค่า: this.nameTagVisibility.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getPlayerPrefix()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:76 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Player Prefix
ทำงานยังไง
คืนค่า: this.playerPrefix.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getPlayers()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:89 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Players
ทำงานยังไง
คืนค่า: this.players.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getPlayerSuffix()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:85 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Player Suffix
ทำงานยังไง
คืนค่า: this.playerSuffix.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#getScoreboard()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:39 - Modifiers:
public - Return:
Scoreboard
คืออะไร
อ่านค่า Scoreboard
ทำงานยังไง
คืนค่า: this.scoreboard.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#isAllowFriendlyFire()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:109 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allow Friendly Fire
ทำงานยังไง
คืนค่า: this.allowFriendlyFire.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#packOptions()
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:159 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ packOptions ตาม implementation ของ PlayerTeam
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isAllowFriendlyFire(), canSeeFriendlyInvisibles(). คืนค่า: i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#PlayerTeam(Scoreboard,String)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:32 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ PlayerTeam ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: scoreboard, name, displayName, displayNameStyle. เรียกต่อ: literal(), withInsertion(), withHoverEvent(). สร้างออบเจ็กต์: HoverEvent.
Parameters
Scoreboard scoreboardString string
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#setAllowFriendlyFire(boolean)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:114 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Allow Friendly Fire
ทำงานยังไง
แก้ state: allowFriendlyFire. เรียกต่อ: onTeamChanged().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#setCollisionRule(Team.CollisionRule)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:154 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Collision Rule
ทำงานยังไง
แก้ state: collisionRule. เรียกต่อ: onTeamChanged().
Parameters
Team.CollisionRule collisionRule
ตัวอย่างใช้งาน
PlayerTeam instance = ...;
Team.CollisionRule collisionRule = ...;
instance.setCollisionRule(collisionRule);
net.minecraft.world.scores.PlayerTeam#setColor(ChatFormatting)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:177 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Color
ทำงานยังไง
แก้ state: color. เรียกต่อ: onTeamChanged().
Parameters
ChatFormatting chatFormatting
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#setDeathMessageVisibility(Team.Visibility)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:144 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Death Message Visibility
ทำงานยังไง
แก้ state: deathMessageVisibility. เรียกต่อ: onTeamChanged().
Parameters
Team.Visibility visibility
ตัวอย่างใช้งาน
PlayerTeam instance = ...;
Team.Visibility visibility = ...;
instance.setDeathMessageVisibility(visibility);
net.minecraft.world.scores.PlayerTeam#setDisplayName(Component)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:62 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Display Name
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: displayName. เรียกต่อ: onTeamChanged(). สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#setNameTagVisibility(Team.Visibility)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:139 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Name Tag Visibility
ทำงานยังไง
แก้ state: nameTagVisibility. เรียกต่อ: onTeamChanged().
Parameters
Team.Visibility visibility
ตัวอย่างใช้งาน
PlayerTeam instance = ...;
Team.Visibility visibility = ...;
instance.setNameTagVisibility(visibility);
net.minecraft.world.scores.PlayerTeam#setPlayerPrefix(Component)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:71 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Player Prefix
ทำงานยังไง
แก้ state: playerPrefix. เรียกต่อ: onTeamChanged().
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#setPlayerSuffix(Component)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:80 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Player Suffix
ทำงานยังไง
แก้ state: playerSuffix. เรียกต่อ: onTeamChanged().
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#setSeeFriendlyInvisibles(boolean)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:124 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า See Friendly Invisibles
ทำงานยังไง
แก้ state: seeFriendlyInvisibles. เรียกต่อ: onTeamChanged().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.scores.PlayerTeam#unpackOptions(int)
- Origin:
common - Source:
net/minecraft/world/scores/PlayerTeam.java:172 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ unpackOptions ตาม implementation ของ PlayerTeam
ทำงานยังไง
เรียกต่อ: setAllowFriendlyFire(), setSeeFriendlyInvisibles().
Parameters
int i
ตัวอย่างใช้งาน
ReadOnlyScoreInfo
- Full name:
net.minecraft.world.scores.ReadOnlyScoreInfo - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/ReadOnlyScoreInfo.java - Type:
interface - Modifiers:
public
net.minecraft.world.scores.ReadOnlyScoreInfo#formatValue(NumberFormat)
- Origin:
common - Source:
net/minecraft/world/scores/ReadOnlyScoreInfo.java:16 - Modifiers:
default - Return:
MutableComponent
คืออะไร
ดำเนินการ formatValue ตาม implementation ของ ReadOnlyScoreInfo
ทำงานยังไง
เรียกต่อ: requireNonNullElse(), numberFormat(), format(), value(). คืนค่า: Objects.requireNonNullElse(this.numberFormat(), numberFormat).format(this.value()).
Parameters
NumberFormat numberFormat
ตัวอย่างใช้งาน
ReadOnlyScoreInfo instance = ...;
NumberFormat numberFormat = ...;
MutableComponent result = instance.formatValue(numberFormat);
net.minecraft.world.scores.ReadOnlyScoreInfo#isLocked()
- Origin:
common - Source:
net/minecraft/world/scores/ReadOnlyScoreInfo.java:11 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Locked
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ReadOnlyScoreInfo#numberFormat()
- Origin:
common - Source:
net/minecraft/world/scores/ReadOnlyScoreInfo.java:13 - Modifiers: ``
- Return:
NumberFormat
คืออะไร
ดำเนินการ numberFormat ตาม implementation ของ ReadOnlyScoreInfo
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ReadOnlyScoreInfo#safeFormatValue(ReadOnlyScoreInfo,NumberFormat)
- Origin:
common - Source:
net/minecraft/world/scores/ReadOnlyScoreInfo.java:20 - Modifiers:
static - Return:
MutableComponent
คืออะไร
ดำเนินการ safeFormatValue ตาม implementation ของ ReadOnlyScoreInfo
ทำงานยังไง
เรียกต่อ: formatValue(), format(). คืนค่า: readOnlyScoreInfo != null ? readOnlyScoreInfo.formatValue(numberFormat) : numberFormat.format(0).
Parameters
ReadOnlyScoreInfo readOnlyScoreInfoNumberFormat numberFormat
ตัวอย่างใช้งาน
ReadOnlyScoreInfo readOnlyScoreInfo = ...;
NumberFormat numberFormat = ...;
MutableComponent result = ReadOnlyScoreInfo.safeFormatValue(readOnlyScoreInfo, numberFormat);
net.minecraft.world.scores.ReadOnlyScoreInfo#value()
- Origin:
common - Source:
net/minecraft/world/scores/ReadOnlyScoreInfo.java:9 - Modifiers: ``
- Return:
int
คืออะไร
ดำเนินการ value ตาม implementation ของ ReadOnlyScoreInfo
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Score
- Full name:
net.minecraft.world.scores.Score - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/Score.java - Type:
class - Modifiers:
public - Implements:
ReadOnlyScoreInfo
net.minecraft.world.scores.Score#display()
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:41 - Modifiers:
public - Return:
Component
คืออะไร
ดำเนินการ display ตาม implementation ของ Score
ทำงานยังไง
คืนค่า: this.display.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Score#display(Component)
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:46 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ display ตาม implementation ของ Score
ทำงานยังไง
แก้ state: display.
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.world.scores.Score#isLocked()
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:32 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Locked
ทำงานยังไง
คืนค่า: this.locked.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Score#numberFormat()
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:50 - Modifiers:
public - Return:
NumberFormat
คืออะไร
ดำเนินการ numberFormat ตาม implementation ของ Score
ทำงานยังไง
คืนค่า: this.numberFormat.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Score#numberFormat(NumberFormat)
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:56 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ numberFormat ตาม implementation ของ Score
ทำงานยังไง
แก้ state: numberFormat.
Parameters
NumberFormat numberFormat
ตัวอย่างใช้งาน
net.minecraft.world.scores.Score#read(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:77 - Modifiers:
public static - Return:
Score
คืออะไร
อ่าน read
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getInt(), getBoolean(), contains(), fromJson(), getString(), parse(), createSerializationContext(), get(). สร้างออบเจ็กต์: Score. คืนค่า: score.
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
Score result = Score.read(compoundTag, provider);
net.minecraft.world.scores.Score#setLocked(boolean)
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:37 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Locked
ทำงานยังไง
แก้ state: locked.
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.world.scores.Score#value()
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:23 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ value ตาม implementation ของ Score
ทำงานยังไง
คืนค่า: this.value.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Score#value(int)
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:28 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ value ตาม implementation ของ Score
ทำงานยังไง
แก้ state: value.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.scores.Score#write(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/scores/Score.java:60 - Modifiers:
public - Return:
CompoundTag
คืออะไร
เขียน write
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: putInt(), putBoolean(), putString(), toJson(), encodeStart(), createSerializationContext(), ifSuccess(), put(). สร้างออบเจ็กต์: CompoundTag. คืนค่า: compoundTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
Score instance = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.write(provider);
ScoreAccess
- Full name:
net.minecraft.world.scores.ScoreAccess - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/ScoreAccess.java - Type:
interface - Modifiers:
public
net.minecraft.world.scores.ScoreAccess#add(int)
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:12 - Modifiers:
default - Return:
int
คืออะไร
เพิ่ม add
ทำงานยังไง
เรียกต่อ: get(), set(). คืนค่า: j.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreAccess#display()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:32 - Modifiers: ``
- Return:
Component
คืออะไร
ดำเนินการ display ตาม implementation ของ ScoreAccess
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreAccess#display(Component)
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:35 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ display ตาม implementation ของ ScoreAccess
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Component component
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreAccess#get()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:8 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreAccess#increment()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:18 - Modifiers:
default - Return:
int
คืออะไร
ดำเนินการ increment ตาม implementation ของ ScoreAccess
ทำงานยังไง
เรียกต่อ: add(). คืนค่า: this.add(1).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreAccess#lock()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:30 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ lock ตาม implementation ของ ScoreAccess
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreAccess#locked()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:26 - Modifiers: ``
- Return:
boolean
คืออะไร
ดำเนินการ locked ตาม implementation ของ ScoreAccess
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreAccess#numberFormatOverride(NumberFormat)
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:37 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ numberFormatOverride ตาม implementation ของ ScoreAccess
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
NumberFormat numberFormat
ตัวอย่างใช้งาน
ScoreAccess instance = ...;
NumberFormat numberFormat = ...;
instance.numberFormatOverride(numberFormat);
net.minecraft.world.scores.ScoreAccess#reset()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:22 - Modifiers:
default - Return:
void
คืออะไร
รีเซ็ต reset
ทำงานยังไง
เรียกต่อ: set().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreAccess#set(int)
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:10 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า set
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreAccess#unlock()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreAccess.java:28 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ unlock ตาม implementation ของ ScoreAccess
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Scoreboard
- Full name:
net.minecraft.world.scores.Scoreboard - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/Scoreboard.java - Type:
class - Modifiers:
public
net.minecraft.world.scores.Scoreboard#addObjective(String,ObjectiveCriteria,Component,ObjectiveCriteria.RenderType,boolean,NumberFormat)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:46 - Modifiers:
public - Return:
Objective
คืออะไร
เพิ่ม Objective
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: containsKey(), computeIfAbsent(), newArrayList(), add(), put(), onObjectiveAdded(). สร้างออบเจ็กต์: IllegalArgumentException, Objective. คืนค่า: objective.
Parameters
String stringObjectiveCriteria objectiveCriteriaComponent componentObjectiveCriteria.RenderType renderTypeboolean blNumberFormat numberFormat
ตัวอย่างใช้งาน
Scoreboard instance = ...;
ObjectiveCriteria objectiveCriteria = ...;
Component component = ...;
ObjectiveCriteria.RenderType renderType = ...;
NumberFormat numberFormat = ...;
Objective result = instance.addObjective("value", objectiveCriteria, component, renderType, true, numberFormat);
net.minecraft.world.scores.Scoreboard#addPlayerTeam(String)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:257 - Modifiers:
public - Return:
PlayerTeam
คืออะไร
เพิ่ม Player Team
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPlayerTeam(), warn(), put(), onTeamAdded(). สร้างออบเจ็กต์: PlayerTeam. มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#addPlayerToTeam(String,PlayerTeam)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:280 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม Player To Team
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPlayersTeam(), removePlayerFromTeam(), put(), getPlayers(), add(). คืนค่า: playerTeam.getPlayers().add(string).
Parameters
String stringPlayerTeam playerTeam
ตัวอย่างใช้งาน
Scoreboard instance = ...;
PlayerTeam playerTeam = ...;
boolean result = instance.addPlayerToTeam("value", playerTeam);
net.minecraft.world.scores.Scoreboard#entityRemoved(Entity)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:351 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ entityRemoved ตาม implementation ของ Scoreboard
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isAlive(), resetAllPlayerScores(), removePlayerFromTeam(), getScoreboardName().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#forAllObjectives(ObjectiveCriteria,ScoreHolder,Consumer<ScoreAccess>)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:65 - Modifiers:
public final - Return:
void
คืออะไร
ดำเนินการ forAllObjectives ตาม implementation ของ Scoreboard
ทำงานยังไง
เรียกต่อ: getOrDefault(), emptyList(), forEach(), accept(), getOrCreatePlayerScore().
Parameters
ObjectiveCriteria objectiveCriteriaScoreHolder scoreHolderConsumer<ScoreAccess> consumer
ตัวอย่างใช้งาน
Scoreboard instance = ...;
ObjectiveCriteria objectiveCriteria = ...;
ScoreHolder scoreHolder = ...;
Consumer<ScoreAccess> consumer = ...;
instance.forAllObjectives(objectiveCriteria, scoreHolder, consumer);
net.minecraft.world.scores.Scoreboard#getDisplayObjective(DisplaySlot)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:247 - Modifiers:
public - Return:
Objective
คืออะไร
อ่านค่า Display Objective
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.displayObjectives.get(displaySlot).
Parameters
DisplaySlot displaySlot
ตัวอย่างใช้งาน
Scoreboard instance = ...;
DisplaySlot displaySlot = ...;
Objective result = instance.getDisplayObjective(displaySlot);
net.minecraft.world.scores.Scoreboard#getObjective(String)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:41 - Modifiers:
public - Return:
Objective
คืออะไร
อ่านค่า Objective
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.objectivesByName.get(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#getObjectiveNames()
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:187 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Objective Names
ทำงานยังไง
เรียกต่อ: keySet(). คืนค่า: this.objectivesByName.keySet().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#getObjectives()
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:183 - Modifiers:
public - Return:
Collection<Objective>
คืออะไร
อ่านค่า Objectives
ทำงานยังไง
เรียกต่อ: values(). คืนค่า: this.objectivesByName.values().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#getOrCreatePlayerScore(ScoreHolder,Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:75 - Modifiers:
public - Return:
ScoreAccess
คืออะไร
อ่านค่า Or Create Player Score
ทำงานยังไง
คืนค่า: this.getOrCreatePlayerScore(scoreHolder, objective, false).
Parameters
ScoreHolder scoreHolderObjective objective
ตัวอย่างใช้งาน
Scoreboard instance = ...;
ScoreHolder scoreHolder = ...;
Objective objective = ...;
ScoreAccess result = instance.getOrCreatePlayerScore(scoreHolder, objective);
net.minecraft.world.scores.Scoreboard#getOrCreatePlayerScore(ScoreHolder,Objective,boolean)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:79 - Modifiers:
public - Return:
ScoreAccess
คืออะไร
อ่านค่า Or Create Player Score
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getCriteria(), isReadOnly(), getOrCreatePlayerInfo(), getScoreboardName(), getOrCreate(), setTrue(), get(), value(). สร้างออบเจ็กต์: MutableBoolean, ScoreAccess, IllegalStateException. มีจุด return อย่างน้อย 3 จุด.
Parameters
ScoreHolder scoreHolderObjective objectiveboolean bl
ตัวอย่างใช้งาน
Scoreboard instance = ...;
ScoreHolder scoreHolder = ...;
Objective objective = ...;
ScoreAccess result = instance.getOrCreatePlayerScore(scoreHolder, objective, true);
net.minecraft.world.scores.Scoreboard#getPlayerScoreInfo(ScoreHolder,Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:166 - Modifiers:
public - Return:
ReadOnlyScoreInfo
คืออะไร
อ่านค่า Player Score Info
ทำงานยังไง
เรียกต่อ: get(), getScoreboardName(). คืนค่า: playerScores != null ? playerScores.get(objective) : null.
Parameters
ScoreHolder scoreHolderObjective objective
ตัวอย่างใช้งาน
Scoreboard instance = ...;
ScoreHolder scoreHolder = ...;
Objective objective = ...;
ReadOnlyScoreInfo result = instance.getPlayerScoreInfo(scoreHolder, objective);
net.minecraft.world.scores.Scoreboard#getPlayersTeam(String)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:316 - Modifiers:
public - Return:
PlayerTeam
คืออะไร
อ่านค่า Players Team
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.teamsByPlayer.get(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#getPlayerTeam(String)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:252 - Modifiers:
public - Return:
PlayerTeam
คืออะไร
อ่านค่า Player Team
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.teamsByName.get(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#getPlayerTeams()
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:312 - Modifiers:
public - Return:
Collection<PlayerTeam>
คืออะไร
อ่านค่า Player Teams
ทำงานยังไง
เรียกต่อ: values(). คืนค่า: this.teamsByName.values().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#getTeamNames()
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:308 - Modifiers:
public - Return:
Collection<String>
คืออะไร
อ่านค่า Team Names
ทำงานยังไง
เรียกต่อ: keySet(). คืนค่า: this.teamsByName.keySet().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#getTrackedPlayers()
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:191 - Modifiers:
public - Return:
Collection<ScoreHolder>
คืออะไร
อ่านค่า Tracked Players
ทำงานยังไง
เรียกต่อ: keySet(), stream(), map(), toList(). คืนค่า: this.playerScores.keySet().stream().map(ScoreHolder::forNameOnly).toList().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#listPlayerScores(Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:172 - Modifiers:
public - Return:
Collection<PlayerScoreEntry>
คืออะไร
ดำเนินการ listPlayerScores ตาม implementation ของ Scoreboard
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: forEach(), get(), add(), value(), display(), numberFormat(). สร้างออบเจ็กต์: ArrayList<>, PlayerScoreEntry. คืนค่า: list.
Parameters
Objective objective
ตัวอย่างใช้งาน
Scoreboard instance = ...;
Objective objective = ...;
Collection<PlayerScoreEntry> result = instance.listPlayerScores(objective);
net.minecraft.world.scores.Scoreboard#listPlayerScores(ScoreHolder)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:217 - Modifiers:
public - Return:
Object2IntMap<Objective>
คืออะไร
ดำเนินการ listPlayerScores ตาม implementation ของ Scoreboard
ทำงานยังไง
เรียกต่อ: get(), getScoreboardName(), listScores(), emptyMap(). คืนค่า: playerScores != null ? playerScores.listScores() : Object2IntMaps.emptyMap().
Parameters
ScoreHolder scoreHolder
ตัวอย่างใช้งาน
Scoreboard instance = ...;
ScoreHolder scoreHolder = ...;
Object2IntMap<Objective> result = instance.listPlayerScores(scoreHolder);
net.minecraft.world.scores.Scoreboard#loadPlayerScores(ListTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:369 - Modifiers:
protected - Return:
void
คืออะไร
โหลด Player Scores
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), getCompound(), read(), getString(), getObjective(), error(), getOrCreatePlayerInfo(), setScore().
Parameters
ListTag listTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
ListTag listTag = ...;
HolderLookup.Provider provider = ...;
@Override
protected void loadPlayerScores(ListTag listTag, HolderLookup.Provider provider) {
super.loadPlayerScores(listTag, provider);
}
net.minecraft.world.scores.Scoreboard#onObjectiveAdded(Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:321 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Objective Added
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Objective objective
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#onObjectiveChanged(Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:324 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Objective Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Objective objective
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#onObjectiveRemoved(Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:327 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Objective Removed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Objective objective
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#onPlayerRemoved(ScoreHolder)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:336 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Player Removed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ScoreHolder scoreHolder
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#onPlayerScoreRemoved(ScoreHolder,Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:339 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Player Score Removed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ScoreHolder scoreHolderObjective objective
ตัวอย่างใช้งาน
Scoreboard instance = ...;
ScoreHolder scoreHolder = ...;
Objective objective = ...;
instance.onPlayerScoreRemoved(scoreHolder, objective);
net.minecraft.world.scores.Scoreboard#onScoreChanged(ScoreHolder,Objective,Score)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:330 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Score Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ScoreHolder scoreHolderObjective objectiveScore score
ตัวอย่างใช้งาน
ScoreHolder scoreHolder = ...;
Objective objective = ...;
Score score = ...;
@Override
protected void onScoreChanged(ScoreHolder scoreHolder, Objective objective, Score score) {
super.onScoreChanged(scoreHolder, objective, score);
}
net.minecraft.world.scores.Scoreboard#onScoreLockChanged(ScoreHolder,Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:333 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Score Lock Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ScoreHolder scoreHolderObjective objective
ตัวอย่างใช้งาน
ScoreHolder scoreHolder = ...;
Objective objective = ...;
@Override
protected void onScoreLockChanged(ScoreHolder scoreHolder, Objective objective) {
super.onScoreLockChanged(scoreHolder, objective);
}
net.minecraft.world.scores.Scoreboard#onTeamAdded(PlayerTeam)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:342 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Team Added
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
PlayerTeam playerTeam
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#onTeamChanged(PlayerTeam)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:345 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Team Changed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
PlayerTeam playerTeam
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#onTeamRemoved(PlayerTeam)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:348 - Modifiers:
public - Return:
void
คืออะไร
จัดการเหตุการณ์ Team Removed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
PlayerTeam playerTeam
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#removeObjective(Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:222 - Modifiers:
public - Return:
void
คืออะไร
ลบ Objective
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: remove(), getName(), values(), getDisplayObjective(), setDisplayObjective(), get(), getCriteria(), onObjectiveRemoved().
Parameters
Objective objective
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#removePlayerFromTeam(String)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:289 - Modifiers:
public - Return:
boolean
คืออะไร
ลบ Player From Team
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPlayersTeam(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#removePlayerFromTeam(String,PlayerTeam)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:299 - Modifiers:
public - Return:
void
คืออะไร
ลบ Player From Team
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPlayersTeam(), getName(), remove(), getPlayers(). สร้างออบเจ็กต์: IllegalStateException.
Parameters
String stringPlayerTeam playerTeam
ตัวอย่างใช้งาน
Scoreboard instance = ...;
PlayerTeam playerTeam = ...;
instance.removePlayerFromTeam("value", playerTeam);
net.minecraft.world.scores.Scoreboard#removePlayerTeam(PlayerTeam)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:270 - Modifiers:
public - Return:
void
คืออะไร
ลบ Player Team
ทำงานยังไง
มีการวนลูป. เรียกต่อ: remove(), getName(), getPlayers(), onTeamRemoved().
Parameters
PlayerTeam playerTeam
ตัวอย่างใช้งาน
net.minecraft.world.scores.Scoreboard#resetAllPlayerScores(ScoreHolder)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:195 - Modifiers:
public - Return:
void
คืออะไร
รีเซ็ต All Player Scores
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: remove(), getScoreboardName(), onPlayerRemoved().
Parameters
ScoreHolder scoreHolder
ตัวอย่างใช้งาน
Scoreboard instance = ...;
ScoreHolder scoreHolder = ...;
instance.resetAllPlayerScores(scoreHolder);
net.minecraft.world.scores.Scoreboard#resetSinglePlayerScore(ScoreHolder,Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:202 - Modifiers:
public - Return:
void
คืออะไร
รีเซ็ต Single Player Score
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), getScoreboardName(), remove(), hasScores(), onPlayerRemoved(), onPlayerScoreRemoved().
Parameters
ScoreHolder scoreHolderObjective objective
ตัวอย่างใช้งาน
Scoreboard instance = ...;
ScoreHolder scoreHolder = ...;
Objective objective = ...;
instance.resetSinglePlayerScore(scoreHolder, objective);
net.minecraft.world.scores.Scoreboard#savePlayerScores(HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:358 - Modifiers:
protected - Return:
ListTag
คืออะไร
บันทึก Player Scores
ทำงานยังไง
เรียกต่อ: forEach(), listRawScores(), write(), putString(), getName(), add(). สร้างออบเจ็กต์: ListTag. คืนค่า: listTag.
Parameters
HolderLookup.Provider provider
ตัวอย่างใช้งาน
HolderLookup.Provider provider = ...;
@Override
protected ListTag savePlayerScores(HolderLookup.Provider provider) {
return super.savePlayerScores(provider);
}
net.minecraft.world.scores.Scoreboard#setDisplayObjective(DisplaySlot,Objective)
- Origin:
common - Source:
net/minecraft/world/scores/Scoreboard.java:243 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Display Objective
ทำงานยังไง
เรียกต่อ: put().
Parameters
DisplaySlot displaySlotObjective objective
ตัวอย่างใช้งาน
Scoreboard instance = ...;
DisplaySlot displaySlot = ...;
Objective objective = ...;
instance.setDisplayObjective(displaySlot, objective);
ScoreboardSaveData
- Full name:
net.minecraft.world.scores.ScoreboardSaveData - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/ScoreboardSaveData.java - Type:
class - Modifiers:
public - Extends:
SavedData
net.minecraft.world.scores.ScoreboardSaveData#load(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/scores/ScoreboardSaveData.java:26 - Modifiers:
public - Return:
ScoreboardSaveData
คืออะไร
โหลด load
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: loadObjectives(), getList(), loadPlayerScores(), contains(), loadDisplaySlots(), getCompound(), loadTeams(). คืนค่า: this.
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
ScoreboardSaveData instance = ...;
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
ScoreboardSaveData result = instance.load(compoundTag, provider);
net.minecraft.world.scores.ScoreboardSaveData#save(CompoundTag,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/world/scores/ScoreboardSaveData.java:138 - Modifiers:
public - Return:
CompoundTag
คืออะไร
บันทึก save
ทำงานยังไง
เรียกต่อ: put(), saveObjectives(), savePlayerScores(), saveTeams(), saveDisplaySlots(). คืนค่า: compoundTag.
Parameters
CompoundTag compoundTagHolderLookup.Provider provider
ตัวอย่างใช้งาน
ScoreboardSaveData instance = ...;
CompoundTag compoundTag = ...;
HolderLookup.Provider provider = ...;
CompoundTag result = instance.save(compoundTag, provider);
net.minecraft.world.scores.ScoreboardSaveData#ScoreboardSaveData(Scoreboard)
- Origin:
common - Source:
net/minecraft/world/scores/ScoreboardSaveData.java:22 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ScoreboardSaveData ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: scoreboard.
Parameters
Scoreboard scoreboard
ตัวอย่างใช้งาน
ScoreHolder
- Full name:
net.minecraft.world.scores.ScoreHolder - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/ScoreHolder.java - Type:
interface - Modifiers:
public
net.minecraft.world.scores.ScoreHolder#forNameOnly(String)
- Origin:
common - Source:
net/minecraft/world/scores/ScoreHolder.java:31 - Modifiers:
static - Return:
ScoreHolder
คืออะไร
ดำเนินการ forNameOnly ตาม implementation ของ ScoreHolder
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(), literal(), getScoreboardName(), getFeedbackDisplayName(). สร้างออบเจ็กต์: ScoreHolder. มีจุด return อย่างน้อย 3 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreHolder#fromGameProfile(GameProfile)
- Origin:
common - Source:
net/minecraft/world/scores/ScoreHolder.java:50 - Modifiers:
static - Return:
ScoreHolder
คืออะไร
ดำเนินการ fromGameProfile ตาม implementation ของ ScoreHolder
ทำงานยังไง
เรียกต่อ: getName(), getScoreboardName(). สร้างออบเจ็กต์: ScoreHolder. คืนค่า: new ScoreHolder() { @Override public String getScoreboardName() { return string.
Parameters
GameProfile gameProfile
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreHolder#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreHolder.java:19 - Modifiers:
default - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
คืนค่า: null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreHolder#getFeedbackDisplayName()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreHolder.java:24 - Modifiers:
default - Return:
Component
คืออะไร
อ่านค่า Feedback Display Name
ทำงานยังไง
เรียกต่อ: getDisplayName(), copy(), withStyle(), withHoverEvent(), literal(), getScoreboardName(). สร้างออบเจ็กต์: HoverEvent.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.ScoreHolder#getScoreboardName()
- Origin:
common - Source:
net/minecraft/world/scores/ScoreHolder.java:17 - Modifiers: ``
- Return:
String
คืออะไร
อ่านค่า Scoreboard Name
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Team
- Full name:
net.minecraft.world.scores.Team - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/Team.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.scores.Team#canSeeFriendlyInvisibles()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:21 - Modifiers:
public abstract - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ See Friendly Invisibles
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team#getCollisionRule()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:33 - Modifiers:
public abstract - Return:
Team.CollisionRule
คืออะไร
อ่านค่า Collision Rule
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team#getColor()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:27 - Modifiers:
public abstract - Return:
ChatFormatting
คืออะไร
อ่านค่า Color
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team#getDeathMessageVisibility()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:31 - Modifiers:
public abstract - Return:
Team.Visibility
คืออะไร
อ่านค่า Death Message Visibility
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team#getFormattedName(Component)
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:19 - Modifiers:
public abstract - Return:
MutableComponent
คืออะไร
อ่านค่า Formatted Name
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Component component
ตัวอย่างใช้งาน
Team instance = ...;
Component component = ...;
MutableComponent result = instance.getFormattedName(component);
net.minecraft.world.scores.Team#getName()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:17 - Modifiers:
public abstract - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team#getNameTagVisibility()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:25 - Modifiers:
public abstract - Return:
Team.Visibility
คืออะไร
อ่านค่า Name Tag Visibility
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team#getPlayers()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:29 - Modifiers:
public abstract - Return:
Collection<String>
คืออะไร
อ่านค่า Players
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team#isAlliedTo(Team)
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:13 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allied To
ทำงานยังไง
คืนค่า: team == null ? false : this == team.
Parameters
Team team
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team#isAllowFriendlyFire()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:23 - Modifiers:
public abstract - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allow Friendly Fire
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Team$CollisionRule
- Full name:
net.minecraft.world.scores.Team$CollisionRule - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/Team.java - Type:
enum - Modifiers:
public
net.minecraft.world.scores.Team$CollisionRule#byName(String)
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:46 - Modifiers:
public static - Return:
Team.CollisionRule
คืออะไร
ดำเนินการ byName ตาม implementation ของ Team$CollisionRule
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: BY_NAME.get(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team$CollisionRule#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:56 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("team.collision." + this.name).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Team$Visibility
- Full name:
net.minecraft.world.scores.Team$Visibility - Package:
net.minecraft.world.scores - Source:
common—net/minecraft/world/scores/Team.java - Type:
enum - Modifiers:
public
net.minecraft.world.scores.Team$Visibility#byName(String)
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:76 - Modifiers:
public static - Return:
Team.Visibility
คืออะไร
ดำเนินการ byName ตาม implementation ของ Team$Visibility
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: BY_NAME.get(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team$Visibility#getAllNames()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:72 - Modifiers:
public static - Return:
String[]
คืออะไร
อ่านค่า All Names
ทำงานยังไง
เรียกต่อ: keySet(), toArray(). คืนค่า: BY_NAME.keySet().toArray(new String[0]).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.scores.Team$Visibility#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/scores/Team.java:86 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
เรียกต่อ: translatable(). คืนค่า: Component.translatable("team.visibility." + this.name).
Parameters
- ไม่มี