Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 09:00:09 +01:00
Add ProtocolManager#hasLoadedMappings
Dieser Commit ist enthalten in:
Ursprung
ff25cbd6eb
Commit
a8fbb000eb
@ -311,4 +311,11 @@ public interface ProtocolManager {
|
|||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
PacketWrapper createPacketWrapper(int packetId, @Nullable ByteBuf buf, UserConnection connection);
|
PacketWrapper createPacketWrapper(int packetId, @Nullable ByteBuf buf, UserConnection connection);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether the mappings have been loaded and the mapping loader executor shutdown.
|
||||||
|
*
|
||||||
|
* @return whether the mappings have been loaded
|
||||||
|
*/
|
||||||
|
boolean hasLoadedMappings();
|
||||||
}
|
}
|
||||||
|
@ -503,6 +503,11 @@ public class ProtocolManagerImpl implements ProtocolManager {
|
|||||||
return new PacketWrapperImpl(packetId, buf, connection);
|
return new PacketWrapperImpl(packetId, buf, connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean hasLoadedMappings() {
|
||||||
|
return mappingsLoaded;
|
||||||
|
}
|
||||||
|
|
||||||
public void shutdownLoaderExecutor() {
|
public void shutdownLoaderExecutor() {
|
||||||
Preconditions.checkArgument(!mappingsLoaded);
|
Preconditions.checkArgument(!mappingsLoaded);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren