GetIpOrThrow
This commit is contained in:
parent
81bd0e6012
commit
fc7e8e7597
@ -218,6 +218,13 @@ public abstract class SenderEntity<E extends SenderEntity<E>> extends Entity<E>
|
||||
return MixinPlayed.get().getIp(this.getIdOrThrow());
|
||||
}
|
||||
|
||||
public String getIpOrThrow()
|
||||
{
|
||||
String ip = this.getIp();
|
||||
if (ip == null) throw new NullPointerException("ip");
|
||||
return ip;
|
||||
}
|
||||
|
||||
public boolean isVisible()
|
||||
{
|
||||
return MixinVisibility.get().isVisible(this);
|
||||
|
Loading…
Reference in New Issue
Block a user