Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
[BREAKING] Rename withUuid()->withId() and withId()->withUndashedId()
Dieser Commit ist enthalten in:
Ursprung
d1473ed938
Commit
3023a90295
@ -82,7 +82,7 @@ public final class GameProfile {
|
|||||||
* @param id the new unique id
|
* @param id the new unique id
|
||||||
* @return the new {@code GameProfile}
|
* @return the new {@code GameProfile}
|
||||||
*/
|
*/
|
||||||
public GameProfile withUuid(UUID id) {
|
public GameProfile withId(UUID id) {
|
||||||
return new GameProfile(Preconditions.checkNotNull(id, "id"), UuidUtils.toUndashed(id),
|
return new GameProfile(Preconditions.checkNotNull(id, "id"), UuidUtils.toUndashed(id),
|
||||||
this.name, this.properties);
|
this.name, this.properties);
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ public final class GameProfile {
|
|||||||
* @param undashedId the new undashed id
|
* @param undashedId the new undashed id
|
||||||
* @return the new {@code GameProfile}
|
* @return the new {@code GameProfile}
|
||||||
*/
|
*/
|
||||||
public GameProfile withId(String undashedId) {
|
public GameProfile withUndashedId(String undashedId) {
|
||||||
return new GameProfile(
|
return new GameProfile(
|
||||||
UuidUtils.fromUndashed(Preconditions.checkNotNull(undashedId, "undashedId")), undashedId,
|
UuidUtils.fromUndashed(Preconditions.checkNotNull(undashedId, "undashedId")), undashedId,
|
||||||
this.name, this.properties);
|
this.name, this.properties);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren