MCPcopy Create free account
hub / github.com/PCGen/pcgen / getWeight

Method getWeight

code/src/java/pcgen/core/Equipment.java:2091–2098  ·  view source on GitHub ↗

Gets the weight attribute of the Equipment object. @param aPC The PC that has this Equipment @return The weight value

(final PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

2089 * @return The weight value
2090 */
2091 public Float getWeight(final PlayerCharacter aPC)
2092 {
2093 if (virtualItem)
2094 {
2095 return (float) 0.0;
2096 }
2097 return (float) getWeightAsDouble(aPC);
2098 }
2099
2100 /**
2101 * get base weight as double

Callers

nothing calls this directly

Calls 1

getWeightAsDoubleMethod · 0.95

Tested by

no test coverage detected