PlayerInfo.java

com.mojang.realmsclient.dto.PlayerInfo

信息

  • 全限定名:com.mojang.realmsclient.dto.PlayerInfo
  • 类型:public class
  • 包:com.mojang.realmsclient.dto
  • 源码路径:src/main/java/com/mojang/realmsclient/dto/PlayerInfo.java
  • 起始行号:L11
  • 继承:ValueObject
  • 实现:ReflectionBasedSerialization
  • 职责:

    TODO

字段/常量

  • name

    • 类型: String
    • 修饰符: public final
    • 源码定位: L12
    • 说明:

      TODO

  • uuid

    • 类型: UUID
    • 修饰符: public final
    • 源码定位: L14
    • 说明:

      TODO

  • operator

    • 类型: boolean
    • 修饰符: public
    • 源码定位: L17
    • 说明:

      TODO

  • accepted

    • 类型: boolean
    • 修饰符: public final
    • 源码定位: L19
    • 说明:

      TODO

  • online

    • 类型: boolean
    • 修饰符: public final
    • 源码定位: L21
    • 说明:

      TODO

内部类/嵌套类型

构造器

public PlayerInfo(String name, UUID uuid, boolean operator, boolean accepted, boolean online) @ L24

  • 构造器名:PlayerInfo
  • 源码定位:L24
  • 修饰符:public

参数:

  • name: String
  • uuid: UUID
  • operator: boolean
  • accepted: boolean
  • online: boolean

说明:

TODO

方法

下面的方法块按源码顺序生成。

代码

@OnlyIn(Dist.CLIENT)
public class PlayerInfo extends ValueObject implements ReflectionBasedSerialization {
    @SerializedName("name")
    public final String name;
    @SerializedName("uuid")
    @JsonAdapter(UUIDTypeAdapter.class)
    public final UUID uuid;
    @SerializedName("operator")
    public boolean operator;
    @SerializedName("accepted")
    public final boolean accepted;
    @SerializedName("online")
    public final boolean online;
 
    public PlayerInfo(String name, UUID uuid, boolean operator, boolean accepted, boolean online) {
        this.name = name;
        this.uuid = uuid;
        this.operator = operator;
        this.accepted = accepted;
        this.online = online;
    }
}

引用的其他类