mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-26 06:24:54 +02:00
Change addViewer0/removeViewer0 access to protected
This commit is contained in:
parent
e92fb1e8d5
commit
a671de1e01
|
@ -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)) {
|
||||
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)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -541,7 +541,7 @@ public class LivingEntity extends Entity implements EquipmentHandler {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean addViewer0(@NotNull Player player) {
|
||||
protected boolean addViewer0(@NotNull Player player) {
|
||||
if (!super.addViewer0(player)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -602,7 +602,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean addViewer0(@NotNull Player player) {
|
||||
protected boolean addViewer0(@NotNull Player player) {
|
||||
if (player == this) {
|
||||
return false;
|
||||
}
|
||||
|
@ -612,7 +612,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean removeViewer0(@NotNull Player player) {
|
||||
protected boolean removeViewer0(@NotNull Player player) {
|
||||
if (player == this || !super.removeViewer0(player)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ public class EntityArmorStand extends ObjectEntity implements EquipmentHandler {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean addViewer0(@NotNull Player player) {
|
||||
protected boolean addViewer0(@NotNull Player player) {
|
||||
if (!super.addViewer0(player)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user