HTTPS
https://git.nageyqma.icu/nageyqma/blade-addons-next.git
SSH
git@git.nageyqma.icu:nageyqma/blade-addons-next.git
HTTPS 链接可直接 git clone;推送代码请使用 SSH。
1234567891011121314151617181920212223242526272829303132333435
package blade.addon.features.other.pet;
import blade.addon.utils.config.components.CombineableNotification;
import blade.addon.utils.config.values.ExtraOptions;
import config.practical.hud.HUDCategory;
import net.minecraft.network.chat.Component;
import java.util.List;
public class PetNotification extends CombineableNotification {
public PetNotification() {
super("Pet swap notification");
}
@Override
public boolean enabled() {
return ExtraOptions.sendPetSwapNotification;
}
@Override
public Component getText() {
return SelectedPet.currentPetText;
}
@Override
public boolean shouldRender() {
return SelectedPet.displayNotification();
}
@Override
public List<HUDCategory> categories() {
return null;
}
}