65 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| package com.mojang.realmsclient.dto;
 | |
| 
 | |
| import com.google.gson.annotations.JsonAdapter;
 | |
| import com.google.gson.annotations.SerializedName;
 | |
| import com.mojang.util.UUIDTypeAdapter;
 | |
| import java.util.UUID;
 | |
| import net.fabricmc.api.EnvType;
 | |
| import net.fabricmc.api.Environment;
 | |
| import org.jetbrains.annotations.Nullable;
 | |
| 
 | |
| @Environment(EnvType.CLIENT)
 | |
| public class PlayerInfo extends ValueObject implements ReflectionBasedSerialization {
 | |
| 	@SerializedName("name")
 | |
| 	@Nullable
 | |
| 	private String name;
 | |
| 	@SerializedName("uuid")
 | |
| 	@JsonAdapter(UUIDTypeAdapter.class)
 | |
| 	private UUID uuid;
 | |
| 	@SerializedName("operator")
 | |
| 	private boolean operator;
 | |
| 	@SerializedName("accepted")
 | |
| 	private boolean accepted;
 | |
| 	@SerializedName("online")
 | |
| 	private boolean online;
 | |
| 
 | |
| 	public String getName() {
 | |
| 		return this.name == null ? "" : this.name;
 | |
| 	}
 | |
| 
 | |
| 	public void setName(String name) {
 | |
| 		this.name = name;
 | |
| 	}
 | |
| 
 | |
| 	public UUID getUuid() {
 | |
| 		return this.uuid;
 | |
| 	}
 | |
| 
 | |
| 	public void setUuid(UUID uuid) {
 | |
| 		this.uuid = uuid;
 | |
| 	}
 | |
| 
 | |
| 	public boolean isOperator() {
 | |
| 		return this.operator;
 | |
| 	}
 | |
| 
 | |
| 	public void setOperator(boolean operator) {
 | |
| 		this.operator = operator;
 | |
| 	}
 | |
| 
 | |
| 	public boolean getAccepted() {
 | |
| 		return this.accepted;
 | |
| 	}
 | |
| 
 | |
| 	public void setAccepted(boolean accepted) {
 | |
| 		this.accepted = accepted;
 | |
| 	}
 | |
| 
 | |
| 	public boolean getOnline() {
 | |
| 		return this.online;
 | |
| 	}
 | |
| 
 | |
| 	public void setOnline(boolean online) {
 | |
| 		this.online = online;
 | |
| 	}
 | |
| }
 |