58 private Player acquaintance;
80 if (!validate(player) || !validate(other)) {
84 if (!
Utility.withinDistance(other, player,
Region.VIEW_DISTANCE)) {
99 if (mutualRequest(otherManager)) {
115 private boolean validate(
Player entity) {
116 return entity !=
null && !entity.positionChange;
127 boolean otherRequested = otherManager.state == RequestState.REQUESTED;
128 boolean sameRequestType = requestType == otherManager.requestType;
129 boolean mutualAcquantances = player.equals(otherManager.acquaintance);
130 return otherRequested && sameRequestType && mutualAcquantances;
134 private void reset() {
137 state = RequestState.
NORMAL;