Files
fabric-carpet/src/main/java/carpet/mixins/PlayerListHudMixin.java
T

19 lines
510 B
Java

package carpet.mixins;
import carpet.fakes.PlayerListHudInterface;
import net.minecraft.client.gui.hud.PlayerListHud;
import net.minecraft.text.Text;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
@Mixin(PlayerListHud.class)
public abstract class PlayerListHudMixin implements PlayerListHudInterface
{
@Shadow private Text footer;
@Shadow private Text header;
public boolean hasFooterOrHeader()
{
return footer != null || header != null;
}
}