use of net.minecraft.server.v1_12_R1.TileEntityBeacon in project PaperDev by Kamillaova.
the class CraftBeacon method getEntitiesInRange.
@Override
public Collection<LivingEntity> getEntitiesInRange() {
TileEntity tileEntity = this.getTileEntityFromWorld();
if (tileEntity instanceof TileEntityBeacon) {
TileEntityBeacon beacon = (TileEntityBeacon) tileEntity;
Collection<EntityHuman> nms = beacon.getHumansInRange();
Collection<LivingEntity> bukkit = new ArrayList<LivingEntity>(nms.size());
for (EntityHuman human : nms) {
bukkit.add(human.getBukkitEntity());
}
return bukkit;
}
// block is no longer a beacon
return new ArrayList<LivingEntity>();
}
Aggregations