mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-29 11:59:11 +00:00
添加设置uuid和name
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package net.momirealms.craftengine.core.pack.host;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public record ResourcePackDownloadData(String url, UUID uuid, String sha1) {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package net.momirealms.craftengine.core.pack.host;
|
||||
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
public interface ResourcePackHost {
|
||||
|
||||
CompletableFuture<ResourcePackDownloadData> requestOneTimeUrl(UUID player);
|
||||
|
||||
ResourcePackDownloadData getResourcePackUrl(UUID player);
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface NetWorkUser {
|
||||
boolean isOnline();
|
||||
@@ -17,6 +18,12 @@ public interface NetWorkUser {
|
||||
|
||||
String name();
|
||||
|
||||
void setName(String name);
|
||||
|
||||
UUID uuid();
|
||||
|
||||
void setUUID(UUID uuid);
|
||||
|
||||
void sendPacket(Object packet, boolean immediately);
|
||||
|
||||
void receivePacket(Object packet);
|
||||
|
||||
Reference in New Issue
Block a user