Package net.minecraft.world.scores
Class Objective
java.lang.Object
net.minecraft.world.scores.Objective
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ObjectiveCriteria
private boolean
private Component
private Component
private final String
private NumberFormat
private ObjectiveCriteria.RenderType
private final Scoreboard
-
Constructor Summary
ConstructorDescriptionObjective
(Scoreboard p_83308_, String p_83309_, ObjectiveCriteria p_83310_, Component p_83311_, ObjectiveCriteria.RenderType p_83312_, boolean p_311052_, NumberFormat p_309864_) -
Method Summary
Modifier and TypeMethodDescriptionprivate Component
boolean
getName()
numberFormatOrDefault
(NumberFormat p_309891_) void
setDisplayAutoUpdate
(boolean p_309636_) void
setDisplayName
(Component p_83317_) void
setNumberFormat
(NumberFormat p_311380_) void
setRenderType
(ObjectiveCriteria.RenderType p_83315_)
-
Field Details
-
scoreboard
-
name
-
criteria
-
displayName
-
formattedDisplayName
-
renderType
-
displayAutoUpdate
private boolean displayAutoUpdate -
numberFormat
-
-
Constructor Details
-
Objective
public Objective(Scoreboard p_83308_, String p_83309_, ObjectiveCriteria p_83310_, Component p_83311_, ObjectiveCriteria.RenderType p_83312_, boolean p_311052_, @Nullable NumberFormat p_309864_)
-
-
Method Details
-
getScoreboard
-
getName
-
getCriteria
-
getDisplayName
-
displayAutoUpdate
public boolean displayAutoUpdate() -
numberFormat
-
numberFormatOrDefault
-
createFormattedDisplayName
-
getFormattedDisplayName
-
setDisplayName
-
getRenderType
-
setRenderType
-
setDisplayAutoUpdate
public void setDisplayAutoUpdate(boolean p_309636_) -
setNumberFormat
-