Change addViewer0/removeViewer0 access to protected

This commit is contained in:
TheMode 2021-04-23 21:06:47 +02:00
parent e92fb1e8d5
commit a671de1e01
4 changed files with 6 additions and 6 deletions

View File

@ -344,7 +344,7 @@ public class Entity implements Viewable, Tickable, EventHandler, DataContainer,
} }
} }
public boolean addViewer0(@NotNull Player player) { protected boolean addViewer0(@NotNull Player player) {
if (!this.viewers.add(player)) { if (!this.viewers.add(player)) {
return false; return false;
} }
@ -380,7 +380,7 @@ public class Entity implements Viewable, Tickable, EventHandler, DataContainer,
} }
} }
public boolean removeViewer0(@NotNull Player player) { protected boolean removeViewer0(@NotNull Player player) {
if (!viewers.remove(player)) { if (!viewers.remove(player)) {
return false; return false;
} }

View File

@ -541,7 +541,7 @@ public class LivingEntity extends Entity implements EquipmentHandler {
} }
@Override @Override
public boolean addViewer0(@NotNull Player player) { protected boolean addViewer0(@NotNull Player player) {
if (!super.addViewer0(player)) { if (!super.addViewer0(player)) {
return false; return false;
} }

View File

@ -602,7 +602,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
} }
@Override @Override
public boolean addViewer0(@NotNull Player player) { protected boolean addViewer0(@NotNull Player player) {
if (player == this) { if (player == this) {
return false; return false;
} }
@ -612,7 +612,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
} }
@Override @Override
public boolean removeViewer0(@NotNull Player player) { protected boolean removeViewer0(@NotNull Player player) {
if (player == this || !super.removeViewer0(player)) { if (player == this || !super.removeViewer0(player)) {
return false; return false;
} }

View File

@ -52,7 +52,7 @@ public class EntityArmorStand extends ObjectEntity implements EquipmentHandler {
} }
@Override @Override
public boolean addViewer0(@NotNull Player player) { protected boolean addViewer0(@NotNull Player player) {
if (!super.addViewer0(player)) { if (!super.addViewer0(player)) {
return false; return false;
} }