Document generics

This commit is contained in:
games647
2022-01-14 12:50:53 +01:00
parent 36337f7feb
commit e6eb4939b4
2 changed files with 9 additions and 9 deletions

View File

@ -25,21 +25,21 @@
*/ */
package com.github.games647.fastlogin.core.hooks.bedrock; package com.github.games647.fastlogin.core.hooks.bedrock;
import java.io.IOException;
import java.util.Optional;
import java.util.UUID;
import com.github.games647.craftapi.model.Profile; import com.github.games647.craftapi.model.Profile;
import com.github.games647.craftapi.resolver.RateLimitException; import com.github.games647.craftapi.resolver.RateLimitException;
import com.github.games647.fastlogin.core.StoredProfile; import com.github.games647.fastlogin.core.StoredProfile;
import com.github.games647.fastlogin.core.shared.FastLoginCore; import com.github.games647.fastlogin.core.shared.FastLoginCore;
import com.github.games647.fastlogin.core.shared.LoginSource; import com.github.games647.fastlogin.core.shared.LoginSource;
import java.io.IOException;
import java.util.Optional;
import java.util.UUID;
/** /**
* @param B is an instance of either FloodgatePlayer or GeyserSession * @param <B> is an instance of either FloodgatePlayer or GeyserSession
*/ */
public abstract class BedrockService<B> { public abstract class BedrockService<B> {
protected final FastLoginCore<?, ?, ?> core; protected final FastLoginCore<?, ?, ?> core;
protected final String allowConflict; protected final String allowConflict;

View File

@ -25,11 +25,11 @@
*/ */
package com.github.games647.fastlogin.core.hooks.bedrock; package com.github.games647.fastlogin.core.hooks.bedrock;
import java.util.UUID;
import com.github.games647.fastlogin.core.shared.FastLoginCore; import com.github.games647.fastlogin.core.shared.FastLoginCore;
import com.github.games647.fastlogin.core.shared.LoginSource; import com.github.games647.fastlogin.core.shared.LoginSource;
import java.util.UUID;
import org.geysermc.geyser.GeyserImpl; import org.geysermc.geyser.GeyserImpl;
import org.geysermc.geyser.session.GeyserSession; import org.geysermc.geyser.session.GeyserSession;
import org.geysermc.geyser.session.auth.AuthType; import org.geysermc.geyser.session.auth.AuthType;
@ -58,7 +58,7 @@ public class GeyserService extends BedrockService<GeyserSession> {
if ("true".equals(allowConflict)) { if ("true".equals(allowConflict)) {
core.getPlugin().getLog().info("Skipping name conflict checking for player {}", username); core.getPlugin().getLog().info("Skipping name conflict checking for player {}", username);
} else { } else {
super.checkNameConflict(username, source); super.checkNameConflict(username, source);
} }
return true; return true;
} }