Class McbsGoalType<T extends McbsGoal>
java.lang.Object
com.thecsdev.betterstats.api.mcbs.model.goal.McbsGoalType<T>
- Type Parameters:
T- TheMcbsGoaltype.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final McbsGoalType<McbsSivGoal> McbsGoalTypeimplementation forMcbsSivGoal. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Tcreate()Creates anMcbsGoalinstance for thisMcbsGoalType, with default configurations (where any apply).abstract @NotNull com.mojang.serialization.MapCodec<T> getCodec()final @Nullable net.minecraft.resources.IdentifiergetKey()Returns theIdentifierkey for thisMcbsGoalTypein theBRegistries.GOAL_TYPEregistry, ornullif thisMcbsGoalTypeis not registered.@NotNull net.minecraft.network.chat.ComponentgetName()Returns the user-friendly display name for thisMcbsGoalType.
-
Field Details
-
STAT_INT_VALUE
McbsGoalTypeimplementation forMcbsSivGoal.
-
-
Constructor Details
-
McbsGoalType
- Throws:
NullPointerException
-
-
Method Details
-
getBaseClass
-
getKey
@Nullable public final @Nullable net.minecraft.resources.Identifier getKey()Returns theIdentifierkey for thisMcbsGoalTypein theBRegistries.GOAL_TYPEregistry, ornullif thisMcbsGoalTypeis not registered. -
getCodec
-
getName
@Virtual @NotNull public @NotNull net.minecraft.network.chat.Component getName()Returns the user-friendly display name for thisMcbsGoalType. This is the general name for the type of goal itself, that applies to all correspondingMcbsGoalinstances.- See Also:
-
create
Creates anMcbsGoalinstance for thisMcbsGoalType, with default configurations (where any apply).
-