mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-03 23:17:48 +01: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)) {
|
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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user