Added documentation to Mixin classes

This commit is contained in:
2025-04-23 20:53:15 +02:00
parent be6472cc79
commit c7ea933494
4 changed files with 21 additions and 0 deletions

View File

@ -12,6 +12,9 @@ import wtf.hak.survivalfabric.config.ConfigManager;
@Mixin(ServerPlayerEntity.class)
public abstract class ServerPlayerEntityMixin {
/**
* Change player list name if enabled
*/
@Inject(method = "getPlayerListName", at = @At("HEAD"), cancellable = true)
private void changePlayerListName(CallbackInfoReturnable<Text> cir) {
if (ConfigManager.getConfig().dimensionIndicatorEnabled) {