Class BRegistries
java.lang.Object
com.thecsdev.betterstats.api.registry.BRegistries
BetterStats's common-sided registries for adding features to the mod.
Important note:
These Registrys are NOT registered in the game's ROOT
BuiltInRegistries.REGISTRY! Avoid any and all operations that involve
the game's ROOT registry!
These Registrys are also NOT synchronized between the client
and server!
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.core.Registry<McbsGoalType<?>> RegistryforMcbsGoalTypes.
Allows this mod to be capable of recognizing and serializingMcbsGoalinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidstatic final @NotNull net.minecraft.resources.IdentifierCreates anIdentifierthat usesBetterStats.MOD_IDas the "namespace".
-
Field Details
-
GOAL_TYPE
RegistryforMcbsGoalTypes.
Allows this mod to be capable of recognizing and serializingMcbsGoalinstances.The
McbsGoalTypeIdentifiers MUST match theIdentifiers of correspondingMcbsGoalGUIs.- See Also:
-
-
Method Details
-
bootstrap
public static final void bootstrap() -
id
@Internal @NotNull public static final @NotNull net.minecraft.resources.Identifier id(@NotNull @NotNull String id) Creates anIdentifierthat usesBetterStats.MOD_IDas the "namespace".- Parameters:
id- TheIdentifier.getPath()value.
-