Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 35 lines 698 B view raw
1package com.legacyminecraft.poseidon.util; 2 3import java.util.UUID; 4 5public class UUIDResult { 6 private final UUID uuid; 7 private final ReturnType returnType; 8 private Exception exception; 9 10 public UUIDResult(UUID uuid, ReturnType returnType) { 11 this.uuid = uuid; 12 this.returnType = returnType; 13 } 14 15 public UUID getUuid() { 16 return uuid; 17 } 18 19 public ReturnType getReturnType() { 20 return returnType; 21 } 22 23 public Exception getException() { 24 return exception; 25 } 26 27 public void setException(Exception exception) { 28 this.exception = exception; 29 } 30 31 32 public enum ReturnType { 33 ONLINE, OFFLINE, API_OFFLINE 34 } 35}