java.io.Serializable
public final class UnitInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
static UnitInfo |
from(SC2APIProtocol.Ui.UnitInfo sc2ApiUnitInfo) |
|
java.util.Optional<UnitInfo> |
getAddOn() |
|
java.util.Optional<java.lang.Float> |
getBuildProgress() |
|
java.util.Optional<java.lang.Integer> |
getEnergy() |
|
java.util.Optional<java.lang.Integer> |
getHealth() |
|
java.util.Optional<Alliance> |
getPlayerRelative() |
|
java.util.Optional<java.lang.Integer> |
getShields() |
|
java.util.Optional<java.lang.Integer> |
getTransportSlotsTaken() |
|
UnitType |
getUnitType() |
|
int |
hashCode() |
|
java.lang.String |
toString() |
public static UnitInfo from(SC2APIProtocol.Ui.UnitInfo sc2ApiUnitInfo)
public UnitType getUnitType()
public java.util.Optional<Alliance> getPlayerRelative()
public java.util.Optional<java.lang.Integer> getHealth()
public java.util.Optional<java.lang.Integer> getShields()
public java.util.Optional<java.lang.Integer> getEnergy()
public java.util.Optional<java.lang.Integer> getTransportSlotsTaken()
public java.util.Optional<java.lang.Float> getBuildProgress()
public java.util.Optional<UnitInfo> getAddOn()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017–2018 Ocraft Project. All rights reserved.