File size: 636 Bytes
d46f4a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.mojang.realmsclient.exception;

import com.mojang.realmsclient.client.RealmsError;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

@OnlyIn(Dist.CLIENT)
public class RetryCallException extends RealmsServiceException {
    public static final int DEFAULT_DELAY = 5;
    public final int delaySeconds;

    public RetryCallException(int p_87789_, int p_87790_) {
        super(RealmsError.CustomError.retry(p_87790_));
        if (p_87789_ >= 0 && p_87789_ <= 120) {
            this.delaySeconds = p_87789_;
        } else {
            this.delaySeconds = 5;
        }
    }
}