Migrate Carpet Mixin names to mojang mappings
This commit is contained in:
1 parent
2c3871b90e
commit
a547677597
154 files changed
+422
-501
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package carpet.mixins;
|
||||
import carpet.fakes.PlayerListHudInterface;
|
||||
import net.minecraft.client.gui.components.PlayerTabOverlay;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
@Mixin(PlayerTabOverlay.class)
|
||||
public abstract class PlayerTabOverlayMixin implements PlayerListHudInterface
|
||||
{
|
||||
@Shadow private Component footer;
|
||||
|
||||
@Shadow private Component header;
|
||||
|
||||
public boolean hasFooterOrHeader()
|
||||
{
|
||||
return footer != null || header != null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user